📩Exports

This shows how to use the basic exports that are available in the admin menu resource!

You must keep the admin menu name to OD_AdminMenu if you use any of these exports!

Adding Banned Player Export

Please note this export DOES NOT remove the player but rather adds their ban into the system! Please also note that all the fields are REQUIRED and not optional in this export!

exports['OD_AdminMenu']:AddBannedPlayer(name, idents, reason, time)

--Info on parameters
name = The players name 
idents = Table of all the players identifiers! Must look like ident example below!
reason = Reason of player's ban
time = The time of the ban, must be one of the time examples below!

--Examples
Ident Example

{ --If you don't want to add that identifier put N/A (Must have at least one identifier)
        steam = "steam:11000014703df51", --Steam
        lic = "license:a168a6a6cc75ff84bee8fb19c7735bad1b50a182", --Game License
        dis = "<@267181487328067585>", --Discord
        xbx = "N/A", --Xbox
        live = "N/A", --Live Id
        ips = "N/A", --Ip
        name = "Hobo", --Name Again
        id = "1" --Server Id
}

Time Examples

--Can be any of the examples below (must be one of these below to work)
"1day"
"2day"
"3day"
"1week"
"2week"
"3week"
"1month"
"2month"
"3month"
"6month"
"1year"
"forever"

Unban Player Via Ban Id

This export allows you to trigger the admin menu to unban said player with their corresponding ban id!

exports['UnbanThisId']:AddBannedPlayer(banid)

--Info on parameters
banid = The ban id of the player

Last updated