- Documentation
- Server functions
- resetVehicleComponentPosition
Function
resetVehicleComponentPosition
Clears the part offset stored with setVehicleComponentPosition.
Syntax
bool resetVehicleComponentPosition(vehicle vehicle, string component)Arguments
vehiclevehicle- The vehicle.
componentstring- Part name.
Returns
true on success.
Example
local vehicle = createVehicle(411, 2000, -1690, 13.5)
resetVehicleComponentPosition(vehicle, "bonnet_dummy")