IsVehicleHornActive

From Onset Developer Wiki
Revision as of 09:44, 12 December 2019 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
IsVehicleHornActive

Type: Function
Context: Client
Introduced: v1.0

Description

Check if the vehicle horn is active or not.

Syntax

IsVehicleHornActive(vehicle)

Parameters

  • vehicle
    The vehicle identifier.

Return Value

  • Returns true on success.

Example

local vehicleId = GetPlayerVehicle()
if IsVehicleHornActive(vehicleId) then
    AddPlayerChat("You are pressing the horn.")
end

See also

__EDIT_ME__