function daspawnzon()
if not spx then
outputChatBox("#E3E8B7The command will be available once the map is restarted!", 0, 0, 0, true)
else
local car = getPedOccupiedVehicle(localPlayer)
if not car then return end
setElementFrozen(car, false)
setElementModel(car, model)
--setTimer(setElementFrozen, 2500, 1000, car, false)
setElementHealth(car, 1000)
setElementPosition(car, spx, spy, spz)
setElementRotation(car, sprx, spry, sprz)
triggerServerEvent('syncModel', resourceRoot, car, spm)
end
end
addCommandHandler("RES", daspawnzon)