ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. resetVehicleComponentVisible

Function

resetVehicleComponentVisible

ClientVehiclesTrilogy Hub only

Clears the local (this player only) visibility setting of a vehicle part, so the state set by the server comes back. Without a part name it clears the local settings of all parts of the vehicle.

Syntax

bool resetVehicleComponentVisible(vehicle vehicle [, string component = nil])

Arguments

vehiclevehicle
The vehicle.
componentstring, optional = nil
Part name; nil = all.

Returns

true on success.

Example

local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then resetVehicleComponentVisible(vehicle) end

See also