Frameworks & Exports

Supported frameworks and exports.

Frameworks

The below frameworks are supported, please report any conflicts by creating an issue on the respective product or on my discord.

QBCore: so long as you do not have have qb-extras installed.

ESX

Exports

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

state_indic

Indicator/turn-signal state.

0: off

1: left on

2: right on,

3: hazard/4-ways on

actv_manu

Is manual siren on?

true, false

actv_horn

Is the horn on?

true, false

state_lxsiren

Main siren tone ID.

0: off,

>0: tone ID of main siren

state_pwrcall

Powercall/auxiliary siren tone ID.

0: off

>0: tone ID of aux/powercall

state_airmanu

Airhorn/manual siren tone ID.

0: off

>0: tone ID of AirManu

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)

Last updated