FXServer Integration
Allowlist Exports
Or commonly called whitelisting.
Thanks cfx for creating confusion
whitelistAdd
Payload:
Prop
Type
local payload = {
type = "discord",
value = "226389308305702912",
by = 1
}
local response = exports.fxManager:whitelistAdd(payload)
if response.ok then
print("Player successfully added to the whitelist.")
else
print("Failed to add player to whitelist:", response.error)
endwhitelistRemove
Payload:
Prop
Type
local payload = {
type = "discord",
value = "226389308305702912",
by = 1
}
local response = exports.fxManager:whitelistRemove(payload)
if response.ok then
print("Player successfully removed from the whitelist.")
else
print("Failed to remove player from whitelist:", response.error)
end