From 7aba11da2c2843e6b6787171c08ba7eadf6c4648 Mon Sep 17 00:00:00 2001 From: ChatDisabled <44729807+ChatDisabled@users.noreply.github.com> Date: Sun, 21 Aug 2022 18:36:50 +0200 Subject: [PATCH] server/exports.lua --- locale/en.lua | 2 +- server/exports.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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