GetVehicleHornType
Docslocal retval = GetVehicleHornType(vehicle)Description
This is a getter for the client-side native <code>START_VEHICLE_HORN</code>, which allows you to return the horn type of the vehicle.
Note: This native only gets the hash value set with START_VEHICLE_HORN. If a wrong hash is passed into START_VEHICLE_HORN, it will return this wrong hash.
enum eHornTypes
{
NORMAL = 1330140148,
HELDDOWN = -2087385909,
AGGRESSIVE = -92810745
}Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle to check the horn type. |
Quick Snippet: Get Vehiclevehicle
vehicleUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
HashReturns a joaat hash value.