IsVehicleHornActive

From Onset Developer Wiki
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__