structura foldere

mutat kq- folders in un singur folder [kq]
This commit is contained in:
2026-03-30 01:55:03 +03:00
parent af1286d583
commit c291b81f26
2319 changed files with 0 additions and 14 deletions

View File

@@ -0,0 +1,31 @@
function GetDiscordDescription(model, license, player)
local description = '- **' .. L('Vehicle') .. '**: ' .. model ..
'\n- **' .. L('License plate') .. '**: ' .. license ..
'\n- **' .. L('Date') .. '**: '.. os.date("%A, %m %B %Y - %H:%M")
if Config.webhook.includeUserName then
description = description .. '\n\n'.. L('User') .. ': ' .. GetPlayerName(player)
end
if Config.webhook.includeSteamId then
if not Config.webhook.includeUserName then
description = description .. '\n'
end
description = description .. '\n*' .. GetIdentifier(player) .. '*'
end
return description
end
function GetIdentifier(player)
for k, v in ipairs(GetPlayerIdentifiers(player)) do
if string.match(v, 'license:') then
return v:gsub('license:', '')
end
end
return ''
end
RegisterCommand('kq_dyno_restart', function(source)
TriggerClientEvent('kq_dyno:client:prepareRestart', -1, source)
end, true)