Dolinho Posted February 19, 2015 Share Posted February 19, 2015 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 Link to comment
AMARANT Posted February 19, 2015 Share Posted February 19, 2015 Is this just a piece of the code or the full code? Link to comment
Dolinho Posted February 19, 2015 Author Share Posted February 19, 2015 this complete when tightening the L script does not work. Link to comment
AMARANT Posted February 19, 2015 Share Posted February 19, 2015 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. Link to comment
Dolinho Posted February 19, 2015 Author Share Posted February 19, 2015 ok then I will do it this way, I tried with an easier way. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now