Filip Posted May 26, 2012 Share Posted May 26, 2012 local employee = nil function createEmployee( res ) employee = createPed(-2035.0927, -117.4863, 1035.1718) setPedRotation(employee, 267) setElementInterior(employee, 3) setElementDimension(employee, 6) end addEventHandler("onClientResourceStart", resourceRoot, createEmployee) So, every time I put in the right coordinates for the ped, and the right Rotation, interior and dimension. It doesn't create a ped for me. Some help would be nice. Thank you! Link to comment
Wei Posted May 26, 2012 Share Posted May 26, 2012 local employee = nil function createEmployee( res ) employee = createPed(ID OF PED HERE, -2035.0927, -117.4863, 1035.1718) setPedRotation(employee, 0, 0, 267) setElementInterior(employee, 3) setElementDimension(employee, 6) end addEventHandler("onClientResourceStart", resourceRoot, createEmployee) You forgot to add id of ped Link to comment
Filip Posted May 26, 2012 Author Share Posted May 26, 2012 Lol, I'm dumb. Thanks man! 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