🖥️Server Function Reference
Learn about and how to use common core server functions!
Player Getters
QBCore.Functions.GetIdentifier
local identifier = QBCore.Functions.GetIdentifier(source, 'license')
print(identifier)
OR -- defaults to the identifier in the config of qb-core
local identifier = QBCore.Functions.GetIdentifier(source)
print(identifier)QBCore.Functions.GetSource
QBCore.Functions.GetPlayer
QBCore.Functions.GetPlayerByCitizenId
QBCore.Functions.GetPlayerByPhone
QBCore.Functions.GetPlayerByAccount
QBCore.Functions.GetPlayerByCharInfo
QBCore.Functions.GetPlayers
QBCore.Functions.GetQBPlayers
QBCore.Functions.GetPlayersOnDuty
QBCore.Functions.GetDutyCount
World Getters
QBCore.Functions.GetCoords
QBCore.Functions.GetClosestObject
QBCore.Functions.GetClosestVehicle
QBCore.Functions.GetClosestPed
Vehicle Creation
QBCore.Functions.SpawnVehicle
QBCore.Functions.CreateAutomobile
QBCore.Functions.CreateVehicle
Routing Buckets
QBCore.Functions.GetBucketObjects
QBCore.Functions.GetPlayersInBucket
QBCore.Functions.GetEntitiesInBucket
QBCore.Functions.SetEntityBucket
QBCore.Functions.SetPlayerBucket
Items
QBCore.Functions.CreateUseableItem
QBCore.Functions.CanUseItem
QBCore.Functions.UseItem
QBCore.Functions.HasItem
Permissions
QBCore.Functions.AddPermission
QBCore.Functions.RemovePermission
QBCore.Functions.HasPermission
QBCore.Functions.GetPermission
QBCore.Functions.IsOptIn
QBCore.Functions.ToggleOptIn
Callbacks
QBCore.Functions.TriggerClientCallback
QBCore.Functions.CreateCallback
Miscellaneous
QBCore.Functions.Notify
QBCore.Debug
QBCore.ShowError
QBCore.ShowSuccess
QBCore.Functions.Kick
Last updated
Was this helpful?
