OnVehicleBackfire

From Onset Developer Wiki
OnVehicleBackfire

Type: Event
Context: Client
Introduced: v1.2.0

Description

Called when a backfire effect is triggered on a vehicle.

Syntax

OnVehicleBackfire(vehicle)
  • vehicle
    The vehicle identifier.

Example

AddEvent("OnVehicleBackfire", function(vehicle)
    if GetVehicleDriver(vehicle) == GetPlayerId() then
        AddPlayerChat("Boom")
    end
end)

See also