Jump to content

[HELP] Respawn Vehicle


opnaiC

Recommended Posts

Hello,

I want that when a player leaves the vehicle it respawns after 10 seconds, but when he leaves it and enter it again it should not respawn.

Here is my function (its not working):

function bmx () 
local bmxbike = { [510]=true } 
local checkedPlayer = getPlayerFromName ( checkedPlayerName ) 
if ( checkedPlayer ) then 
if bmxbike[getElementModel(source)] and isPedInVehicle ( checkedPlayer ) then 
else 
setTimer(respawnVehicle, 10000, 1, source) 
end 
end 
end 

Link to comment

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...