Skip to content

Commit

Permalink
Fix: Desativar debug, whitelist não funciona
Browse files Browse the repository at this point in the history
  • Loading branch information
ggfto committed Dec 24, 2024
1 parent 0ac5e78 commit 6319edd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 162 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function loadCitizenship()
coords = Config.citizenZone.coords,
size = Config.citizenZone.size,
rotation = Config.citizenZone.rotation,
debug = true,
debug = Config.Debug,
onExit = escapeCitizenship
}

Expand All @@ -117,7 +117,7 @@ local function OnPlayerLoaded()
Config = lib.callback.await("mri_Qwhitelist:Server:GetConfig", false)
if not lib.callback.await("mri_Qwhitelist:Server:CheckCitizenship", false) then
if Config.Enabled then
OnPlayerLoaded()
loadCitizenship()
end
end
end
Expand Down
160 changes: 0 additions & 160 deletions resource/client.lua

This file was deleted.

1 change: 1 addition & 0 deletions server/config.sample.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Config = {
Enabled = true, -- Coloque false para desativar a whitelist.
Debug = false, -- Coloque true para habilitar o debug.
Percent = 70, -- Porcentagem de respostas corretas para liberar o player
loadNotify = 'Você deve completar o exame de cidadania para jogar!', -- Notification when player loads in without completing citizenship.
escapeNotify = 'Você deve completar o exame de cidadania para jogar!', -- Notification when player tries to leave citizenship office.
Expand Down

0 comments on commit 6319edd

Please sign in to comment.