BriGhtx3 Posted June 17, 2011 Share Posted June 17, 2011 My Script : function AldiPed() AldiPed1 = createPed ( 219, 0, 0, 0 ) setElementInterior (AldiPed1, 4, -29, -30, 1004) setPedVoice(AldiPed1, "PED_TYPE_DISABLED") setPedFrozen (AldiPed1, true) setElementDimension (AldiPed1, 1) end addEventHandler('onClientResourceStart', getResourceRootElement(),AldiPed) I don't know where my error is. There isn't an error, just I don't see any ped. Even if I spawn him next to me. Link to comment
JR10 Posted June 17, 2011 Share Posted June 17, 2011 addEventHandler('onClientResourceStart', getResourceRootElement(),AldiPed) should be addEventHandler('onClientResourceStart', getResourceRootElement(getThisResource()),AldiPed) Link to comment
BinSlayer1 Posted June 17, 2011 Share Posted June 17, 2011 script looks good, are you sure your own dimension is set to "1" ? Link to comment
BriGhtx3 Posted June 17, 2011 Author Share Posted June 17, 2011 Thanks BinSlayer1 My dimension was 0. Link to comment
JR10 Posted June 17, 2011 Share Posted June 17, 2011 LOL? Did you do what i told you else it shouldn't work. Link to comment
JR10 Posted June 17, 2011 Share Posted June 17, 2011 Oh lol its optional and will do it automatically nvm me. Link to comment
Dark Dragon Posted June 17, 2011 Share Posted June 17, 2011 well you should follow his advice anyways, as the way you do it the ped is being created whenever ANY resource starts. not just yours. Link to comment
JR10 Posted June 17, 2011 Share Posted June 17, 2011 Not really and i just discovered that element getResourceRootElement ( [resource theResource=getThisResource()] ) if you left it blank it will automatically getThisResource() Link to comment
Dark Dragon Posted June 17, 2011 Share Posted June 17, 2011 oh, yeah, my bad I think I start to see code which does not exist. I've probably probably seen getRootElement() there too much during my life. 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