description |
---|
Supported frameworks and exports. |
The below frameworks are supported, please report any conflicts by creating an issue on the respective product or on my discord.
{% hint style="success" %} QBCore: so long as you do not have have qb-extras installed. {% endhint %}
{% hint style="success" %} ESX {% endhint %}
Vehicle State Change Event (Coming v3.2.10)
Broadcasts event when LVC vehicle state changes. Returns a table/array of data below:\
Table Index/Key | Description | Options |
---|---|---|
state_indic | Indicator/turn-signal state. |
|
actv_manu | Is manual siren on? | true , false |
actv_horn | Is the horn on? | true , false |
state_lxsiren | Main siren tone ID. |
|
state_pwrcall | Powercall/auxiliary siren tone ID. |
|
state_airmanu | Airhorn/manual siren tone ID. |
|
{% code title="Example Event Handler" %}
RegisterNetEvent('lvc:UpdateThirdParty')
AddEventHandler('lvc:UpdateThirdParty', function(update_data)
local siren_tone = update_data['state_lxsiren']
if siren_tone > 0 then
--Sirens on, do something...
end
end)
{% endcode %}