Skip to main content

esx:playerDropped

Server Side

This event is triggered when the player disconnects from the server

Arguments

ArgumentData TypeExplanation
playerIdnumberplayerId
reasonstringreason

Example Usage

RegisterNetEvent('esx:playerDropped', function(playerId, reason)
local xPlayer = ESX.GetPlayerFromId(playerId)
print(playerId, 'disconnected from the server', xPlayer.getName(), 'Reason: '..reason)
end)