Jump to content

Handsup


Dolinho

Recommended Posts

Posted

Why not this working?

function KissCommand ( source ) 
if not ( isPedDead(source) ) then 
setElementFrozen (source, true) 
setPedAnimation (source, "shop", "shp_rob_handsup", -1, true, false, false ) 
    end 
end 
bindKey ( source, "l", "down", KissCommand) 
  
function StopCommand ( source ) 
setElementFrozen (source, false) 
setPedAnimation ( source ) 
unbindKey ( source, "l", "down", KissCommand) 
end 

Posted

That's not surprising. You're binding 'L' button for 'source'. But where is that 'source' defined? This variable can't be used without event handler. You need to loop every player and only then bind your key via bindKey function for every player.

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