bosslorenz Posted May 17, 2015 Posted May 17, 2015 CLIENT-SIDE ped1 = createPed( 285, 1314, -1369, 13.6, 180) setElementFrozen (ped1,true) function cancelPedDamage() cancelEvent() end addEventHandler("onClientPedDamage", ped1, cancelPedDamage) function givePed1() givePedWeapon( ped1, 31, 500, true) setTimer( givePedWeapon, 1000, 1, ped1, 31, 500, true) end addEventHandler("onResourceStart", root, givePed1) No error debug. its just that when the resource starts , it spawns the ped but not holding the weapon=31=M4. I need help
Walid Posted May 17, 2015 Posted May 17, 2015 it must be "onClientResourceStart" because you are trying to use (client;server) in the same code. here client side event and here server side event 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
bosslorenz Posted May 17, 2015 Author Posted May 17, 2015 it must be "onClientResourceStart" because you are trying to use (client;server) in the same code.here client side event and here server side event Thanks @Walid. I should have checked it fully before posting here .
Walid Posted May 17, 2015 Posted May 17, 2015 Thanks @Walid. I should have checked it fully before posting here . np. 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
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