ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. resetVehicleComponentRotation

Function

resetVehicleComponentRotation

ServerVehiclesIdentical to MTA:SA

Clears the part rotation stored with setVehicleComponentRotation.

Syntax

bool resetVehicleComponentRotation(vehicle vehicle, string component)

Arguments

vehiclevehicle
The vehicle.
componentstring
Part name.

Returns

true on success.

Example

local vehicle = createVehicle(411, 2000, -1690, 13.5)
resetVehicleComponentRotation(vehicle, "bonnet_dummy")

See also