OnVehicleBackfire: Difference between revisions

From Onset Developer Wiki
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..."
 
(No difference)

Latest revision as of 09:06, 24 May 2020

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