Skip to main content
The admin panel communicates with the server through callbacks. These handle all admin actions from the NUI panel.

Overview

Player Management

List, kick, ban, heal, teleport

Business & Jobs

Manage employment and businesses

Items

Give items to players

Doors & Elevators

Create, edit, delete doors
All admin callbacks verify permissions before executing. Admin callbacks require IsAdmin(), some support IsStaff() with limited functionality.

Player Management

Admin:GetPlayerList

Get all currently connected players. Returns: Array of player data (source, name, character info, job)

Admin:GetDisconnectedPlayerList

Get recently disconnected players. Returns: Array of disconnected player records

Admin:GetPlayer

Get detailed information about a specific player. Data: { source = number } Returns: Full player and character data

Admin:BanPlayer

Ban a player from the server. Data:
{
    source = number,        -- Target player server ID
    reason = string,        -- Ban reason
    duration = number       -- Ban duration in days (0 = permanent)
}
Logging: Bans are logged to console, file, database, and Discord with embed.

Admin:KickPlayer

Kick a player from the server. Data:
{
    source = number,        -- Target player server ID
    reason = string         -- Kick reason
}

Admin:ActionPlayer

Perform an action on a player (bring, goto, heal, attach, marker). Data:
{
    action = string,        -- "bring", "goto", "heal", "attach", "marker"
    targetSource = number   -- Target player server ID
}
Actions:
ActionDescription
bringTeleport target player to admin
gotoTeleport admin to target player
healFully heal target player
attachAttach admin camera to target
markerPlace marker on target’s position

Admin:ToggleInvisible

Toggle admin invisibility.

Admin:NoClip

Log noclip usage (toggled via chat command).

Business Management

Admin:GetBusinessList

Get all registered businesses. Returns: Array of business data

Admin:GetBusinessDetail

Get detailed info about a specific business. Data: { businessId = string }

Admin:FireEmployee

Remove an employee from a business. Data:
{
    businessId = string,
    characterSID = number
}

Job Management

Admin:GetJobList

Get all available jobs and their grades. Returns: Array of job definitions

Admin:GiveJob

Give a job to a player. Data:
{
    targetSource = number,
    job = string,
    grade = number
}

Admin:RemoveJob

Remove a player’s job (set to unemployed). Data:
{
    targetSource = number
}

Item Management

Admin:GetItemList

Get all registered items. Returns: Array of item definitions

Admin:GiveItem

Give an item to a player. Data:
{
    targetSource = number,
    item = string,
    count = number
}

Door & Elevator Management

Admin:GetDoorList

Get all door definitions. Returns: Array of door data

Admin:CreateDoor

Create a new dynamic door (saved to database). Data: Door definition table (see Doors Configuration)

Admin:UpdateDoor

Update an existing dynamic door. Data:
{
    doorIndex = number,
    doorData = table          -- Updated door definition
}

Admin:DeleteDoor

Delete a dynamic door. Data: { doorIndex = number }

Admin:ToggleDoorLock

Toggle a door’s lock state from the admin panel. Data: { doorId = string|number }

Admin:GetElevatorList

Get all elevator definitions.

Admin:CreateElevator

Create a new dynamic elevator.

Admin:UpdateElevator

Update an existing dynamic elevator.

Admin:DeleteElevator

Delete a dynamic elevator.

Admin:StartDoorHelper

Start the door helper tool (places markers at door coordinates for editing).

Admin:StartElevatorZoneHelper

Start the elevator zone visualization helper.

Admin:StartElevatorPositionHelper

Start the elevator position helper tool.

Heist Management

Admin:GetHeistStatuses

Get current status of all heists/robberies. Returns: Array of heist statuses (active, cooldown, disabled)

Admin:ResetHeist

Reset a specific heist. Data: { heistId = string }

Admin:HeistAction

Perform a heist management action. Data:
{
    action = string,          -- "toggle_robberies", "reset_cooldown", "disable_lockdown"
    heistId = string          -- Optional: specific heist
}

Utility Callbacks

Admin:GetMapPlayers

Get all players with their current positions for the admin map. Returns: Array of { source, coords, name, character } entries

Admin:TeleportToCoords

Teleport admin to specific coordinates. Data:
{
    x = number,
    y = number,
    z = number
}

Admin:CurrentVehicleAction

Perform an action on the admin’s current vehicle. Data: { action = string }
Vehicle actions require admin level 90+.

Admin:UpdatePhonePerms

Update a player’s phone permissions from the admin panel. Data:
{
    targetSource = number,
    app = string,
    permission = string,
    value = boolean
}

Admin:GetCommandList

Get all registered chat commands visible to the admin. Returns: Array of command definitions

Next Steps

Admin - Commands

Chat commands

Admin - Permissions

Permission system

Doors API

Door management