Commands & Exports
Client commands
| Command | Key binding | Description |
|---|---|---|
openSkyClubMenu | E (default) | Opens the NUI colour control panel when the player is within range of the interaction point. Only available when MBT.Target.Active = false. |
The key binding is registered via RegisterKeyMapping and can be rebound by the player in the GTA V key settings menu.
Server commands
| Command | Description |
|---|---|
saveEntititesSet | Manually triggers a MySQL save of all current entity set states. Useful before a manual restart without TxAdmin. |
# In server console or rcon
saveEntititesSetExports
skyClubCustomInit(data) — Server
Called by your custom framework bridge to hook into the entity set sync lifecycle. Use this when running a framework other than ESX, QBCore or OX Core.
-- In your bridge resource
exports.iak_skyclub_v3:skyClubCustomInit({
source = source,
playerIterationFunction = function(event, data)
-- iterate all players and trigger client event
for _, player in pairs(GetPlayers()) do
TriggerClientEvent(event, tonumber(player), data)
end
end
})The data table must contain:
source— the player source triggering the init (used for the initial sync on player load)
Inside server_custom.lua you can add your own playerLoaded event handler and resource-restart handler. This file is not escrowed.
saveEntititesSet() — Server
Programmatically triggers a MySQL save of all current entity set states.
-- From another resource
exports.iak_skyclub_v3:saveEntititesSet()Identical to running the saveEntititesSet server command.
NUI events
These are internal events used between the client and the NUI page. Documented here for reference if you want to build custom integrations.
| Direction | Event / Callback | Payload | Description |
|---|---|---|---|
| Server → Client | mbt_skyclub:syncEntityData | EntitySets table | Syncs the full entity set state to a player; called on join and after every colour change |
| Client → NUI | action: "UI", display: true, payload: Sets | Sets table | Opens the NUI and populates the dropdown with available sets and colours |
| NUI → Client | closeUI | — | Closes the NUI and releases focus |
| NUI → Client | setColor | { dataValue: { setindex, colorindex } } | Applies a colour change and relays it to the server |
| Client → Server | mbt_skyclub:sendSetEntitySetColor | { newValues, EntitySets } | Server applies the colour, broadcasts to all clients, optionally saves to DB |
