Jump to content

Tommy.

Members
  • Posts

    226
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Tommy.

  1. function playerJustGotDied() local x, y, z = getElementPosition ( source) if (getZoneName (x, y, z, true) == "Las Venturas") then local money = createPickup(x, y, z, 3, 1212) outputChatBox("öldün") end end addEventHandler("onPlayerWasted", getRootElement(), playerJustGotDied); I did not test
  2. Servidor de RP Full BR sendo desenvolvido: https://www.facebook.com/InfinityPlayRP
  3. I did not test. --ClientSide function getStatusCamera() local spec = getCameraTarget() local veh = getVehicleOccupant(spec) if (getElementType(spec) == "player") then getElementHealth(veh) getVehicleNitroLevel(veh) end end
  4. yeah men. Link Wiki: https://wiki.multitheftauto.com/wiki/SetVehicleHandling
  5. This function resets all properties to GTA default value
  6. setVehicleHandling (modelID, true )
  7. for you to do this you will need to use shaders
  8. OK I will do it. Thank you bro!
  9. I had put the wrong code, This one I put is the current one. RESOLVED
  10. Tommy.

    [HELP] bindKey

    RESOLVED function detach(source) detachElementFromElement(source) end function bindset(source) bindKey(source, "F2", "down", detach) end addEventHandler("onPlayerJoin", root, bindset) Thx, @DonOmar
  11. Tommy.

    [HELP] bindKey

    warning: ATTACH\s.lua:209: Bad argument @ 'bindKey' [Expected player at argument 1,got string 'f']
  12. -> Server-side function detach() detachElementFromElement(source) end bindKey("f", "down", detach) debugscript: http://i.imgur.com/Db48FsE.jpg
  13. Tommy.

    Admin ACL

    Some Administrator deleted Acl Admin and I do not want to restart the server, how can I resolve this? LOG: [2017-08-24 20:00:16] ACL: admin: ACL 'Admin' deleted If I can find out who it was, it helps too.
  14. Thank you, I love you, brother. <3
  15. function createTEAM () teamSTAFF = createTeam ("STAFF", 0, 255, 255) end addEventHandler("onResourceStart", resourceRoot, createTEAM) groupSTAFF = { [ "Console" ] = true, [ "Admin" ] = true, [ "SuperModerator" ] = true, [ "Moderator" ] = true }; function STAFF() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("groupSTAFF")) then setPlayerTeam(source, teamSTAFF) end end addEventHandler("onPlayerLogin",getRootElement(),STAFF) debugscript: http://prntscr.com/ds34m0
  16. function createTEAM () teamSTAFF = createTeam ("STAFF", 0, 255, 255) end addEventHandler("onResourceStart", resourceRoot, createTEAM) groupSTAFF = { [ "Console" ] = true, [ "Admin" ] = true, [ "SuperModerator" ] = true, [ "Moderator" ] = true }; function STAFF() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(groupSTAFF)) then setPlayerTeam(source, teamSTAFF) end end addEventHandler("onPlayerLogin",getRootElement(),STAFF) debugscript: http://prntscr.com/ds2kqi
  17. No error in debugscript but does not work
  18. that's right? function Gravity () setPedGravity(source, 0.0001) setTimer(function(source) setPedGravity(source, 0.0008) end, 5000, 1) end addEvent("Gravity-5s",true) addEventHandler("Gravity-5s",getRootElement(),Gravity)
  19. I want to stop the gravity after 5 seconds Gravity changes to 0.0001 but does not return to 0.0008 --client side panel = false function test() dxDrawRectangle(414, 297, 109, 29, tocolor(0, 0, 0, 150), false) dxDrawText("TEST GRAVITY", 414, 297, 523, 326, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) end function onClientClick (button,state) if parte1hab and button == "left" and state == "down" then if isCursorOnElement(414, 297, 109, 29) then triggerServerEvent ("Gravity-5s", getLocalPlayer()) end end end addEventHandler("onClientClick",root,onClientClick) function open() if panel == false then addEventHandler ("onClientRender", root, test) panel = true showCursor (true) else removeEventHandler ("onClientRender", root, test) panel = false showCursor (false) end end bindKey("F5", "down", open) --server side function Gravity () setPedGravity(source, 0.0001) setTimer(function() setPedGravity(source, 0.0008) end, 5000, 1) end addEvent("Gravity-5s",true) addEventHandler("Gravity-5s",getRootElement(),Gravity)
×
×
  • Create New...