fxManager
FXServer Integration

Allowlist Exports

Or commonly called whitelisting.

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)
end

whitelistRemove

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

On this page