


Previous
Configuration Reference
Was this page helpful?
| 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.
| 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
saveEntititesSetskyClubCustomInit(data) — ServerCalled 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() — ServerProgrammatically 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.
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 | |
| — |
| 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 |