Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.92 KB

frameworks-and-exports.md

File metadata and controls

37 lines (27 loc) · 1.92 KB
description
Supported frameworks and exports.

➕ Frameworks & Exports

Frameworks

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 %}

Exports

Vehicle State Change Event (Coming v3.2.10)
Broadcasts event when LVC vehicle state changes. Returns a table/array of data below:\

Table Index/KeyDescriptionOptions
state_indicIndicator/turn-signal state.

0: off

1: left on

2: right on,

3: hazard/4-ways on

actv_manuIs manual siren on?true, false
actv_hornIs the horn on?true, false
state_lxsirenMain siren tone ID.

0: off,

>0: tone ID of main siren

state_pwrcallPowercall/auxiliary siren tone ID.

0: off

>0: tone ID of aux/powercall

state_airmanuAirhorn/manual siren tone ID.

0: off

>0: tone ID of AirManu

{% 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 %}