CapY Posted September 2, 2011 Share Posted September 2, 2011 When someone enters in a vehicle and starts to drive it , after 5 seconds he gets respawned at the place where he was entered in vehicle . Is it possible to clone vehicle when someone takes it ? function respawnTakenVehicle() setTimer(createVehicle, 5000, 1, source) end addEventHandler("onVehicleEnter", getRootElement(), respawnTakenVehicle) Link to comment
BinSlayer1 Posted September 2, 2011 Share Posted September 2, 2011 yeah but use cloneElement not createVehicle.. if you want to use createVehicle you need to parse model id, x,y,z, not 'source' Link to comment
CapY Posted September 2, 2011 Author Share Posted September 2, 2011 Lol i have created vehicles in map , so i dont need . Link to comment
BinSlayer1 Posted September 2, 2011 Share Posted September 2, 2011 Lol createVehicle only works if you parse those parameters.. you should really have a look here https://wiki.multitheftauto.com/wiki/CreateVehicle Link to comment
Static-X Posted September 2, 2011 Share Posted September 2, 2011 You can create a marker on player vehicle enter and clone the car or create it (use getElementPosition to get the params) when the player leaves that marker. 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