Exports (client)
StartClampingProcess
Starts looking for the closest vehicle wheel. If one is found the player character will move towards it and start the animation to attach the clamp.
If items are set up in the config, requires the clampItemName
item and removes it upon successful use.
StartRemovalProcess
Starts looking for the closest vehicle wheel. If one is found and it has a clamp the player character will move towards it and start the animation to remove the clamp.
If items are set up in the config, requires the removalToolItemName
and adds a clampItemName
to the player's inventory.
StartDestructionProcess
Starts looking for the closest vehicle wheel. If one is found and it has a clamp the player character will move towards it and start the animation to destroy the clamp.
If items are set up in the config, requires the destroyItemName
.
IsAnyWheelClamped
Checks if any wheel of the vehicle is clamped.
Parameters:
vehicle - int
- The handle of the vehicle to check.
Returns:
bool
- Returns true if any wheel is clamped.
IsWheelClamped
Checks if the specified wheel of the vehicle is clamped.
Parameters:
vehicle - int
- The handle of the vehicle to check.
wheelBone - string
- The name of the wheel bone to check.
Returns:
bool
- Returns true if the specified wheel is clamped.
GetAllClampedWheels
Gets a list of all clamped wheels of a vehicle.
Parameters:
vehicle - int
- The handle of the vehicle to check.
Returns:
table<string>
- Returns a table containing all wheel bones (check IsWheelClamped for a list of bone names) that have a clamp attached.
Last updated