structura foldere
mutat kq- folders in un singur folder [kq]
This commit is contained in:
@@ -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)
|
||||
BIN
resources/[framework]/[addons]/[kq]/kq_dyno/server/server.lua
Normal file
BIN
resources/[framework]/[addons]/[kq]/kq_dyno/server/server.lua
Normal file
Binary file not shown.
Reference in New Issue
Block a user