Skip to content

Commit

Permalink
Fixed Hyperz mistake of a pull request <3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan2139 authored Feb 10, 2021
1 parent 7a2c6e0 commit 1806c74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions config.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--------------------------------------------------------------------------------------------
-- Guardian- A Far More Advanced FiveM Script Than DiscordWhitelist, Made By Jordan.#2139 --
--------------------------------------------------------------------------------------------
-----------------------------------------------------------
-- Guardian- A Simple FiveM Script, Made By Jordan.#2139 --
-----------------------------------------------------------

-------------------------------------------------------
-- CONFIG YOUR PERIPHERALS HERE! --
Expand All @@ -9,7 +9,7 @@ Config = {
DiscordYeet = 'Sorry but this server reqiures you to have Discord (Desktop Edition) to play. Please restart FiveM and Discord if it is already open!', -- Message to client if their discord cannot be found by the script
WhitelistYeet = 'Sorry but this is a whitelisted community if you would like to join please see our website- WEBSITE to apply!', -- Message to client if they are not whitelisted
RoleIdsYeet = 'Sorry but I could not find your role ID\'s please reconnect and if this persists please contact the server developer!',
ServerName = 'New Orleans Roleplay',
ServerName = 'RightLife Roleplay',
WhitelistRoles = { -- Roles that you assigned in Badgers API that should pass the whitelist, ALSO Make sure that **each** role ends with a comma!
"Whitelisted",
"MaybeWhitelisted",
Expand All @@ -18,4 +18,4 @@ WhitelistRoles = { -- Roles that you assigned in Badgers API that should pass th
}
--------------------------
-- ^^^ DO THAT HERE ^^^ --
--------------------------
--------------------------
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ game "gta5"
name "Guardian"
description "A simple whitelist script that utilizes Badger's new API"
author "Jordan.#2139"
version "v1.2.0"
version "v1.3.0"


server_script "config.lua"
Expand Down
4 changes: 2 additions & 2 deletions server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
-- DO NOT TOUCH THIS FILE OR YOU /WILL/ FUCK SHIT UP! EDIT THE CONFIG.LUA --
-- DO NOT BE STUPID AND WHINE TO ME ABOUT THIS BEING BROKEN IF YOU TOUCHED THE LINES BELOW. --
----------------------------------------------------------------------------------------------

function ExtractIdentifiers(src)
local identifiers = {
discord = ""
Expand All @@ -28,10 +27,11 @@ end
roleList = Config.WhitelistRoles;

AddEventHandler("playerConnecting", function(name, setCallback, deferrals)
local Config = Config
deferrals.defer()
local src = source
local identifierDiscord = "";
deferrals.update("Checking Whitelist Permissions For " Config.ServerName)
deferrals.update("Checking Whitelist Permissions For " .. Config.ServerName)

Citizen.Wait(0); -- Necessary Citizen.Wait() before deferrals.done()

Expand Down

0 comments on commit 1806c74

Please sign in to comment.