Exports (server)
AttachClamp
Attaches a clamp directly to the specified vehicle's wheel bone.
Parameters:
vehicle - int
- The handle of the vehicle to check.
wheelBone - string
- The name of the wheel bone.
RemoveClamp
Removes a clamp directly from the specified vehicle's wheel bone.
Parameters:
vehicle - int
- The handle of the vehicle to check.
wheelBone - string - The name of the wheel bone.
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.
Parameters:
playerId - int
- The id of the player.
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.
Parameters:
playerId - int
- The id of the player.
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
.
Parameters:
playerId - int
- The id of the player.
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