ErHaBe Posted July 16, 2016 Posted July 16, 2016 Hallo This Code Dont Work Why ? addEvent("n2",true) addEventHandler("n2",root, function () setPedAnimation ( plr, "CRACK", "crckidle3") triggerClientEvent(source,"c2",source) end) addCommandHandler("nmoney",root,) قل ما شئت بمسبتي فسكوتي عن اللئيم جوابي لست عديم الجواب ولكن ما من اسد يجيب على الكلاب
Walid Posted July 16, 2016 Posted July 16, 2016 (edited) plr is not defined in your code + you need to add the function name when using addCommandHandler, try this: function anim (plr) setPedAnimation ( plr, "CRACK", "crckidle3") triggerClientEvent(plr,"c2",plr) end) addCommandHandler("nmoney",anim) Edited July 16, 2016 by Guest Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
ErHaBe Posted July 16, 2016 Author Posted July 16, 2016 plr is not defined in your code, try this: function anim (plr) setPedAnimation ( plr, "CRACK", "crckidle3") triggerClientEvent(plr,"c2",plr) end) addCommandHandler("nmoney",anim) no exist trigger قل ما شئت بمسبتي فسكوتي عن اللئيم جوابي لست عديم الجواب ولكن ما من اسد يجيب على الكلاب
ErHaBe Posted July 16, 2016 Author Posted July 16, 2016 plr is not defined in your code + you need to add the function name when using addCommandHandler, try this: addEvent("n2",true) addEventHandler("n2",root, function anim (plr) setPedAnimation ( plr, "CRACK", "crckidle3") triggerClientEvent(plr,"c2",plr) end) addCommandHandler("nmoney",anim) قل ما شئت بمسبتي فسكوتي عن اللئيم جوابي لست عديم الجواب ولكن ما من اسد يجيب على الكلاب
Walid Posted July 16, 2016 Posted July 16, 2016 exist trigger What are you talking about you are using command handler. explain your problem better. if you want to trigger this function from the client side just use this. addEvent("n2",true) addEventHandler("n2",root, function () setPedAnimation (client, "CRACK", "crckidle3") triggerClientEvent(client,"c2",client) end ) Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
ErHaBe Posted July 16, 2016 Author Posted July 16, 2016 exist trigger What are you talking about you are using command handler. explain your problem better. addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == b1 ) then triggerServerEvent("n1", localPlayer) end end) addEvent("n1",true) addEventHandler("n1",root, function () triggerClientEvent(source,"c1",source) end) addEvent("c1",true) addEventHandler("c1",root, function () guiSetVisible ( Window1, not guiGetVisible ( Window1 ) ) showCursor ( guiGetVisible ( Window1 ) ) triggerServerEvent("n2", localPlayer) end) addEvent("n2",true) addEventHandler("n2",root, addCommandHandler("nmoney", function () setPedAnimation ( source, "CRACK", "crckidle3") triggerClientEvent(source,"c2",source) end) When I type in the F8 works Event قل ما شئت بمسبتي فسكوتي عن اللئيم جوابي لست عديم الجواب ولكن ما من اسد يجيب على الكلاب
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