Last updated
Last updated
There are 8 exports included with the script (all client-side). Some of them are intended to get information to be used in other scripts (e.g. isSlashing export) and some are intended to tell the slash tires script to do something (e.g. attemptToSlashTire).
isSlashing
Returns if the local player is in the progress of slashing a tire
None
Boolean
canCurrentWeaponSlashTires
Returns if the currently equipped player weapon can slash tires
None
Number
burstVehicleTire
Burst the vehicle tire, the client must have network control over the vehicle for this to have an effect
vehicle, tireIndex
getVehicleTireByBone
This gets a bunch of data about a tire, this is export is used together with the slashTire export
vehicle, boneName, coords
Table
getClosestVehicleTire
Much like getVehicleTireByBone it returns the tire data, but this gets the closest tire of the spesifed vehicle
vehicle, coords
Table
slashTire
Makes the player slash the spesifed tire
tire
canSlashVehicleTire
Checks of the player can slash the spesifed tire. This export first returns if the player can slash or not, and if they can't it also returns the reason.
tire
Boolean, String|Nil
attemptToSlashTire
Uses the canSlashVehicleTire function to check if the player can slash the tire, if so the player slashes the tire.
tire