Events
Client
Examples
-- This event is fired when the local player has slashed a tire
AddEventHandler('slashtires:slashedTire', function(vehicle, tireIndex)
print(string.format("Local player slashed a tire (index: %s) of vehicle %s", tireIndex, vehicle))
end)Server
{
source = src, -- string
netId = netId, -- integer
tireIndex = tireIndex, -- integer
hasBurstedTire = hasBurstedTire, -- boolean: if the tire was burst on the client, or if the server needed to send a event to another client to make it burst
vehicleCoords = vehicleCoords, -- vector3
playerCoords = playerCoords, -- vector3
distance = distance, -- number
weaponHash = weaponHash, -- integer
weaponName = weaponName, -- string
sendtAlert = sendtAlert, -- boolean
weaponRemoved = wasWeaponRemoved, -- boolean
vehicleModel = vehicleModel, -- integer
numberPlate = numberPlate -- string
}Examples
Last updated