Comment on page
➕
Frameworks & Exports
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.
ESX
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
: off1
: left on2
: right on,3
: hazard/4-ways onTable 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 AirManuExample 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 modified 9mo ago