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.
Valid wheel bone names:
* Front left: `wheel_lf` * Front right: `wheel_rf` * Rear left: `wheel_lr` * Rear right: `wheel_rr` * Middle left: `wheel_lm`, `wheel_lm1`, `wheel_lm2`, `wheel_lm3` * Middle right: `wheel_rm`, `wheel_rm1`, `wheel_rm2`, `wheel_rm3`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.