GamerDeMTA Posted August 29, 2013 Share Posted August 29, 2013 I wanna give to a ped an anim and I know how to but I wanna do that when someone shots or punchs him, he keeps the anim (mcould I use a setTimer here? to set him the anim each 5 secs for example?) and make it invulnm (he can't die!) Link to comment
Castillo Posted August 29, 2013 Share Posted August 29, 2013 setPedAnimation has an argument so it can't be interrupted, check the wiki. Link to comment
GamerDeMTA Posted August 29, 2013 Author Share Posted August 29, 2013 And how do I do that the ped don't die? but, if i create createPed client side (because my script is client side) wis there any trouble? should I make it in a server side part? Link to comment
Castillo Posted August 29, 2013 Share Posted August 29, 2013 You can use my "extra_health" resource which has a function to make a ped/player invulnerable. https://community.multitheftauto.com/in ... ls&id=5195 Link to comment
GamerDeMTA Posted August 29, 2013 Author Share Posted August 29, 2013 Ok And with the ped should i make it server sided instead client sided? Or if i use onClientResourceStart in the event of create ped all see the ped? Link to comment
Castillo Posted August 29, 2013 Share Posted August 29, 2013 Yes, everyone will see it, since it'll be created on every client. 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