triggerVehicleBackfire
Client
Makes a small flame come out of each of a vehicle's exhausts, once.
bool triggerVehicleBackfire(vehicle vehicle)
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | vehicle | The vehicle. |
Returns
true if it was requested, false if the vehicle is not streamed in.
It works even with the automatic flames turned off by setVehicleBackfireEnabled.
Example
bindKey("b", "down", function()
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
triggerVehicleBackfire(vehicle)
end
end)NoteThe flame only shows if the vehicle has exhausts and is within 30 metres of the camera; otherwise the request is dropped.