diff --git a/locale/en.lua b/locale/en.lua index 5aa3828..61fcf3e 100644 --- a/locale/en.lua +++ b/locale/en.lua @@ -98,7 +98,7 @@ local Translations = { checking_ban = 'Hello %s. We are checking if you are banned.', join_server = 'Welcome %s to {Server Name}.', checking_whitelisted = 'Hello %s. We are checking your allowance.', - skick = 'You have been banned for cheating. Check our Discord for more information: ', + skick = 'You have been banned for cheating. Check our Discord for more information: %{discord}', pdexp = 'You Have Been Kicked For Exploitation', } } diff --git a/server/exports.lua b/server/exports.lua index 64d43c3..f94f6a3 100644 --- a/server/exports.lua +++ b/server/exports.lua @@ -328,7 +328,7 @@ local function ExploitBan(playerId, origin) 2147483647, 'Anti Cheat' }) - DropPlayer(playerId, "You have been banned for cheating. Check our Discord for more information: " .. QBCore.Config.Server.Discord) + DropPlayer(playerId, Lang:t('info.skick', {discord = QBCore.Config.Server.Discord})) TriggerEvent("qb-log:server:CreateLog", "anticheat", "Anti-Cheat", "red", name .. " has been banned for exploiting " .. origin, true) end