Morenkashi Posted September 5, 2013 Share Posted September 5, 2013 i created a ped but when i attack the ped it die i don't know how to make it never get hurt , here is my code : function pedLoad() ped1 = createPed ( 287, 1120.4044189453, 1260.5610351563, 10.8203125 ) giveWeapon( ped1, 31, 500, true ) setTimer( giveWeapon, 1000, 1, ped1, 31, 500, true) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) Link to comment
TAPL Posted September 5, 2013 Share Posted September 5, 2013 https://wiki.multitheftauto.com/wiki/OnClientPedDamage Also don't use getRootElement() with the event onResourceStart, use resourceRoot instead. 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