๐ฎClient Event Reference
Learn about and how to use common core client events!
QBCore:Client:OnPlayerLoaded
Handles the player loading in after character selection
This event can be used as an event handler to trigger code because it signifies the player has successfully loaded into the server!
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
print('Im a client and i just loaded into your server!')
end)QBCore:Client:OnPlayerUnload
Handles the player login out to character selection
This event can be used as an event handler to trigger code because it signifies the player has successfully unloaded or logged out of the server!
RegisterNetEvent('QBCore:Client:OnPlayerUnload', function()
print('Im a client and i just logged out of your server!')
end)QBCore:Client:PvpHasToggled
RegisterNetEvent('QBCore:Client:PvpHasToggled', function(pvp_state)
print('PVP mode has been set to '..pvp_state..'!')
end)QBCore:Command:SpawnVehicle
vehicle model
string
yes
none
QBCore:Command:DeleteVehicle
none
none
no
none
QBCore:Player:SetPlayerData
This event can be used as an event handler to trigger code because it indicates that the players data has changed!
QBCore:Notify
message
string | table
yes
'Placeholder'
type
string
yes
'primary'
length
number
yes
5000
QBCore:Client:UseItem
item name
string
yes
none
QBCore:Command:ShowMe3D
player id
number
yes
none
message
string
yes
none
QBCore:Client:UpdateObject
This event must be used as a handler when using because it refreshes the core object in your resource
Last updated