Jump to content

Taken vehicle


CapY

Recommended Posts

Posted

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) 

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...