GamerDeMTA Posted August 30, 2013 Posted August 30, 2013 So, I use the event 'onClientResourceStart' for create peds, but when I start a resource (and I've already started mine), there are 2 peds! How to fix this?
Chaz-CR Posted August 30, 2013 Posted August 30, 2013 try to use onClientResourceStart and resourceRoot like: addEventHandler("onClientResourceStart",resourceRoot, bot)
Castillo Posted August 30, 2013 Posted August 30, 2013 That happens because you attached the event handler to the root element, and not the resource root element, do what Chaz posted above.
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