Recommended Posts

Hello everyone, today I decided to write a script that is responsible for the destruction of already (explosed) blown up cars (in order not to load the server). That is, after the car has blown up it automatically disappears. But the problem is that I do not know how to write such a script, so I ask you.
Help me.

Share this post


Link to post

Try this:

-- 1 seg = 1000
local disappear = 5000


function vehicledisappear()
    setTimer(destroyElement, disappear, 1, source)
end
addEventHandler("onVehicleExplode", getRootElement(), vehicledisappear)

 

  • Like 1

Share this post


Link to post

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.