IsVehicleHornActive

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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__