Jump to content

[HELP] MY System


MaRcell

Recommended Posts

so on my system when i'm going to set something on the player and take it with setTimer dps for 9 seconds, won't you? will it be because that is not all that has to do to put setTimer inside the function?

 
 
 
 
 
elseif (type == "Crack") then
		          local inventory = getElementData(client,"inventory")
                  if inventory[type] then
                inventory[type].amount = inventory[type].amount - 1 
                outputChatBox("#FF6464[DROGAS]#00FF00Voce Esta Fumando "..type.." agora voce tem "..inventory[type].amount,client, 0, 255, 0, true)
                triggerClientEvent(client,"onPlayerUserItem",client,type,inventory)
                setElementData(client,"inventory",inventory,true)
                setTimer(setPedGravity,9000,1,client,0.0008) 
                setTimer(setPedWalkingStyle,9000,1,client, 137 )
                setPedAnimation( client, "BAR", "dnk_stndM_loop") 
                setTimer(setPedAnimation,9000,1,client, nil, nil)
                 local x, y, z = getElementPosition ( client ) 
                 sigarette = createObject ( 1485, 0, 0, 5 )
                 setTimer(destroyElement,9000,1,sigarette)
                 attachElements ( sigarette, client, 0.05, 0, 0.7, 0, 45, 118 )
                 setElementData(client,"inventory",inventory,true)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...