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:

Table Index/Key

state_indic

Description

Indicator/turn-signal state.

Options

0: off

1: left on

2: right on,

3: hazard/4-ways on

Table Index/Key

actv_manu

Description

Is manual siren on?

Options

true, false

Table Index/Key

actv_horn

Description

Is the horn on?

Options

true, false

Table Index/Key

state_lxsiren

Description

Main siren tone ID.

Options

0: off,

>0: tone ID of main siren

Table Index/Key

state_pwrcall

Description

Powercall/auxiliary siren tone ID.

Options

0: off

>0: tone ID of aux/powercall

Table Index/Key

state_airmanu

Description

Airhorn/manual siren tone ID.

Options

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