BriGhtx3 Posted June 17, 2011 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. Currently working on gamemodes : Reallife Script 70% Breakout Script 10%
JR10 Posted June 17, 2011 Posted June 17, 2011 addEventHandler('onClientResourceStart', getResourceRootElement(),AldiPed) should be addEventHandler('onClientResourceStart', getResourceRootElement(getThisResource()),AldiPed) Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
BinSlayer1 Posted June 17, 2011 Posted June 17, 2011 script looks good, are you sure your own dimension is set to "1" ?
BriGhtx3 Posted June 17, 2011 Author Posted June 17, 2011 Thanks BinSlayer1 My dimension was 0. Currently working on gamemodes : Reallife Script 70% Breakout Script 10%
JR10 Posted June 17, 2011 Posted June 17, 2011 LOL? Did you do what i told you else it shouldn't work. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
BriGhtx3 Posted June 17, 2011 Author Posted June 17, 2011 No I didn't. Currently working on gamemodes : Reallife Script 70% Breakout Script 10%
JR10 Posted June 17, 2011 Posted June 17, 2011 Oh lol its optional and will do it automatically nvm me. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Dark Dragon Posted June 17, 2011 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. Loads of fun for free! Also a lot of fun for free!
JR10 Posted June 17, 2011 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() Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Dark Dragon Posted June 17, 2011 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. Loads of fun for free! Also a lot of fun for free!
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