-stolka- Posted May 3, 2014 Posted May 3, 2014 4 girls dancing... i wanted to make 'em immortal... i don't know why the debug reports bad argument on all onClientPedDamage events client addEventHandler( "onClientResourceStart", getRootElement( ), function ( ) strip1 = createPed ( 237, -2677.8662109375,1403.3516845703,907.5703125 ) strip2 = createPed ( 238, -2678.0302734375,1409.7257080078,907.5703125 ) strip3 = createPed ( 246, -2673.3210449219,1409.7158203125,907.5703125 ) strip4 = createPed ( 152, -2678.7436523438,1414.4287109375,907.56634521484 ) setElementInterior ( strip1, 3 ) setElementInterior ( strip2, 3 ) setElementInterior ( strip3, 3 ) setElementInterior ( strip4, 3 ) setElementDimension ( strip1, 12 ) setElementDimension ( strip2, 12 ) setElementDimension ( strip3, 12 ) setElementDimension ( strip4, 12 ) setPedAnimation( strip1, "STRIP", "STR_Loop_A", 0, true, false, false ) setPedAnimation( strip2, "STRIP", "STR_A2B", 0, true, false, false ) setPedAnimation( strip3, "STRIP", "STR_C1", 0, true, false, false ) setPedAnimation( strip4, "STRIP", "STR_C2", 0, true, false, false ) end ) function cancelPedDamage ( attacker ) cancelEvent() -- cancel any damage done to peds end addEventHandler ( "onClientPedDamage", strip1, cancelPedDamage ) addEventHandler ( "onClientPedDamage", strip2, cancelPedDamage ) addEventHandler ( "onClientPedDamage", strip3, cancelPedDamage ) addEventHandler ( "onClientPedDamage", strip4, cancelPedDamage ) CAOS RP SKYPE: stolka.caosrp CONNECT to CAOS RP
Castillo Posted May 3, 2014 Posted May 3, 2014 Move the event handlers inside the "onClientResourceStart" triggered function. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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