Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Created by Smokahontas.
- function respawnVehicles()
- for index, vehicle in pairs(getElementsByType("vehicle")) do
- local x, y, z = getElementPosition(vehicle)
- local rx, ry, rz = getElementRotation(vehicle)
- local model = getElementModel(vehicle)
- local numberplate = getVehiclePlateText(vehicle)
- local color1, color2 = getVehicleColor(vehicle)
- local health = getElementHealth(vehicle)
- destroyElement(vehicle)
- local nVehicle = createVehicle(model, x, y, z, rx, ry, rz, numberplate)
- setVehicleColor(nVehicle, color1, color2, color1, color2)
- setElementHealth(nVehicle, 0)
- end
- end
- respawnVehicles()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement