Skip to content

Spawn: exports, events & commands ​

Generated from the Lua in the release. Descriptions are the comments above each definition. Event names and export names are public contracts: they do not change between versions.

Exports ​

Call them as exports['lumo-spawn']:Name(...) from the side named in each table.

Client ​

ExportDescription
GetPlayerData()
IsLoggedIn()

Server ​

ExportDescription
DeleteCharacter(src, id)
GetCharacters(src)
GetCitizenId(src)
GetFramework()
GetLicenses(src)
GetLoggedInPlayers()
GetPlayer(src)
GetPlayerByCitizenId(id)
GetPlayerData(src)Exports for third-party scripts and for other Lumo resources running standalone. PlayerData is QB-shaped; see docs/STANDALONE.md.
GetSkin(id)
HasPermission(src, groups)
IsLoggedIn(src)
Login(src, id, data)
Logout(src)
Notify(src, msg, t)
SetMetaData(src, key, value)

Events ​

  • Client events are triggered on the player: TriggerClientEvent(name, src, ...) from the server, or TriggerEvent(name, ...) on the client.
  • Server events are triggered with TriggerServerEvent(name, ...). The server checks the player, distance and amounts itself; never rely on a client to do it.

Client ​

EventArgumentsDescription
esx:onPlayerLogout
esx:playerLoadedxPlayer, isNew, skin
esx:setPlayerData
housing:initHouseshouseConfig
qb-houses:client:setHouseConfighouseConfig
qb-spawn:client:openEditor
qb-spawn:client:openUIvalue
qb-spawn:client:setupSpawnscData, new, apps, houses

Server ​

EventArgumentsDescription
qb-spawn:server:saveSpawnLocationslocations