mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Rebranding: ESX Whitelist -> ESX Allowlist
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<h1 align='center'>[ESX] Allowlist</a></h1><p align='center'><b><a href='https://discord.esx-framework.org/'>Discord</a> - <a href='https://esx-framework.org/'>Website</a> - <a href='https://docs.esx-framework.org/legacy/installation'>Documentation</a></b></h5>
|
||||
|
||||
block those evil intruders with ESX Allowlist!
|
||||
This Script allows you to block all players from joining and specify the only players who can join!
|
||||
|
||||
## Legal
|
||||
|
||||
esx_allowlist- block those evil intruders!
|
||||
|
||||
Copyright (C) 2022 ESX-Framework
|
||||
|
||||
This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.
|
||||
|
||||
This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.
|
||||
|
||||
You should have received a copy Of the GNU General Public License along with this program. If Not, see <http://www.gnu.org/licenses/>.
|
||||
+4
-5
@@ -18,7 +18,7 @@ AddEventHandler('playerConnecting', function(name, setCallback, deferrals)
|
||||
-- Mark this connection as deferred, this is to prevent problems while checking player identifiers.
|
||||
deferrals.defer()
|
||||
|
||||
local playerId, kickReason = source
|
||||
local playerId, kickReason = source, "There Was An Error, Please Contact the server owner!"
|
||||
|
||||
-- Letting the user know what's going on.
|
||||
deferrals.update(_U('whitelist_check'))
|
||||
@@ -44,10 +44,9 @@ AddEventHandler('playerConnecting', function(name, setCallback, deferrals)
|
||||
end
|
||||
end)
|
||||
|
||||
ESX.RegisterCommand('wlrefresh', 'admin', function(xPlayer, args, showError)
|
||||
loadWhiteList(function()
|
||||
showError('Whitelist reloaded')
|
||||
end)
|
||||
ESX.RegisterCommand('wlrefresh', 'admin', function(xPlayer, args)
|
||||
loadWhiteList()
|
||||
print('[esx_whitelist] Whitelist Refreshed!')
|
||||
end, true, {help = _U('help_whitelist_load')})
|
||||
|
||||
ESX.RegisterCommand('wladd', 'admin', function(xPlayer, args, showError)
|
||||
@@ -1,9 +0,0 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_size = 4
|
||||
indent_style = tab
|
||||
end_of_line = crlf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
@@ -1,12 +0,0 @@
|
||||
# esx_whitelist
|
||||
|
||||
# Legal
|
||||
esx_whitelist - Whitelist script
|
||||
|
||||
Copyright (C) 2015-2022 Jérémie N'gadi
|
||||
|
||||
This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.
|
||||
|
||||
This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.
|
||||
|
||||
You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.
|
||||
Reference in New Issue
Block a user