function radExit()
local Vehicle = getVehicleController(source)
local radLinks, radRechts = getVehicleComponentRotation(Vehicle, "wheel_lf_dummy"), getVehicleComponentRotation(Vehicle, "wheel_rf_dummy")
setVehicleComponentRotation(Vehicle, radLinks)
setVehicleComponentRotation(Vehicle, radRechts)
end
addEventHandler("onVehicleExit", getRootElement(), radExit)
function radEnter()
setVehicleComponentRotation(Vehicle, radLinks)
setVehicleComponentRotation(Vehicle, radRechts)
end
addEventHandler("onVehicleEnter", getRootElement(), radEnter)
function radRespawn()
setVehicleComponentRotation(Vehicle, radLinks)
setVehicleComponentRotation(Vehicle, radRechts)
end
addEventHandler("onVehicleRespawn", getRootElement(), radRespawn)
Does anyone know what's wrong with this script?