Camaro_ Posted February 17 Share Posted February 17 Hey guys i need some help from you guys on how to make a script or already made mod to recover destroyed vehicles for my upcoming mta sever.can anyone please help-? Link to comment
ARYDER Posted June 13 Share Posted June 13 Hi If "Destroyed" = "Exploded" then use onVehicleExplode event and insert vehicle data into a table or database, so you can create or spawn it with the same data (color, position, id, name itc) If "Destroyed" = destroyElement (vehicle) then use onElementDestroy event the same way Link to comment
AngelAlpha Posted June 14 Share Posted June 14 Server side addEventHandler ("onVehicleExplode", root, function() local x, y, z = getElementPosition(source) local rx, ry, rz = getElementRotation(source) setVehicleRespawnPosition (source, x, y, z, rx, ry, rz) setTimer(function(veh) respawnVehicle (veh) end, 1000, 1, source) end) 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now