Jump to content

help for jetpack team


MontiVante

Recommended Posts

Posted
addEventHandler("onPlayerJoin", root, 
  function()
    bindKey( source, "J", "down", jetpack )
  end 
)

function jetpack( Player, commandName )
    local playerTeam = getPlayerTeam( Player )

    if ( getTeamName( playerTeam ) == "Militar" ) then 
        if ( not doesPedHaveJetPack( player ) ) then 
        end
            givePedJetPack( player )
        else 
            removePedJetPack( player )
        end 
end
addCommandHandler('jetpack', jetpack)
addCommandHandler('jp', jetpack)

help I have made a script for a teamn can have jetpack but the problem does not want me to serve the bindkey and addCommandHandler that I do help please.

Posted
1 hour ago, santinet12 said:

help I have made a script for a teamn can have jetpack but the problem does not want me to serve the bindkey and addCommandHandler that I do help please.

debug?

Posted
1 minute ago, santinet12 said:

yes bro :/

write in the console (F8)
 

debugscript 3

and post what shows on the screen

Posted

upload it on imgur
and copy the link
and got to reply box
you will find on the down right corner "inset other media" press on it
choose "insert image from url"
and put the link

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...