Jump to content

Question


isa_Khamdan

Recommended Posts

Posted

Hello ,

I have created a vehicle on my code outside function and i added local so it will only exists on this resource and my question is how can i re-create the vehicle after it get destroyed?

Else i want it to replace the old variable but it will have the same name.

local Car = createVehicle(model ,x,y,z)

function()

.....

end

Posted

It doesn't respawn the vehicle if it get destroyed from admin panel :S

  
local Car = createVehicle ( 547, 3108, -3178, 0 ) 
  
function Check() 
    if not (isElement(Car)) then 
    respawnVehicle ( Car ) 
  
 end 
end 
setTimer ( Check, 1000, 0) 

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