Jump to content

Prevent vehicle despawn.


Recommended Posts

If I spawn a vehicle from freeroam panel on my mostly unmodified server and don't get in after some time it just disappears.

EDIT:

Actually found what to change:

local function onExit()
	
	local t = tonumber(get("vehicleExpireTime")) or 600000
	vehicleDestroyTimers[source] = setTimer(destroyVehicle,(t > 50 and t or 50),1,source)
	addEventHandler("onVehicleEnter",source,destroyTimer)

end

 

Edited by Mishqutin
Found it
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...