OnVehicleBackfire

From Onset Developer Wiki
Revision as of 09:06, 24 May 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Client|1.2.0}} {{FuncDescription|Called when a backfire effect is triggered on a vehicle.}} {{FuncSyntax|OnVehicleBackfire(vehicle)}} {{FuncParam|vehicle|The ve...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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