editable.lua
tgiCore = tgiCoreExports:getCore()
local lang = config.langs[config.lang]
tgiCore.CreateUseableItem(config.harnessBelt.itemName, function(source)
TriggerClientEvent("tgiann-lumihud:useHarnessBelt", source)
end)
tgiCore.CommandsAdd(config.commands.hud, lang.hudCommandDesc, {}, false, function(source, args)
TriggerClientEvent("tgiann-lumihud:hudMenu", source)
end)
tgiCore.CommandsAdd(config.commands.cruisespeed, lang.cruiseCommandDesc, {}, false, function(source, args)
TriggerClientEvent("tgiann-lumihud:cruisespeed", source, args)
end)
RegisterNetEvent('tgiann-lumihud:car:server:tyreBurst')
AddEventHandler('tgiann-lumihud:car:server:tyreBurst', function(table, random)
for i = 1, #table do
TriggerClientEvent("tgiann-lumihud:car:client:tyreBurst", table[i], random)
end
end)
RegisterNetEvent('tgiann-lumihud:car:eject-other-player-car')
AddEventHandler('tgiann-lumihud:car:eject-other-player-car', function(table, velocity)
for i = 1, #table do
TriggerClientEvent("tgiann-lumihud:car:eject-other-player-car-client", table[i], velocity)
end
end)
Last updated