-
Posts
226 -
Joined
-
Last visited
-
Days Won
4
Everything posted by Tommy.
-
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
-
Servidor de RP Full BR sendo desenvolvido: https://www.facebook.com/InfinityPlayRP
-
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
-
@50p link off men
-
yeah men. Link Wiki: https://wiki.multitheftauto.com/wiki/SetVehicleHandling
-
This function resets all properties to GTA default value
-
setVehicleHandling (modelID, true )
-
for you to do this you will need to use shaders
-
RESOLVED function detach(source) detachElementFromElement(source) end function bindset(source) bindKey(source, "F2", "down", detach) end addEventHandler("onPlayerJoin", root, bindset) Thx, @DonOmar
-
warning: ATTACH\s.lua:209: Bad argument @ 'bindKey' [Expected player at argument 1,got string 'f']
-
-> Server-side function detach() detachElementFromElement(source) end bindKey("f", "down", detach) debugscript: http://i.imgur.com/Db48FsE.jpg
-
Thank you, I love you, brother. <3
-
no problem
-
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
-
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
-
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)
-
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)