Player Related Events
esx:playerLoaded
Triggered after the client's character joins the world.
AddEventHandler("esx:playerLoaded", function(playerData, isNew, skin)
end)
esx:onPlayerLogout
Triggered after logout of the client from its character.
AddEventHandler("esx:onPlayerLogout", function()
end)
esx:setAccountMoney
Triggered after any change in the client character's specified account.
AddEventHandler("esx:setAccountMoney", function(account)
end)
esx:setAccountMoney
Triggered after addition of an item to the client character's inventory.
AddEventHandler("esx:addInventoryItem", function(item, count, showNotification)
end)
esx:removeInventoryItem
Triggered after removal of an item from the client character's inventory.
AddEventHandler("esx:removeInventoryItem", function(item, count, showNotification)
end)
esx:setMaxWeight
Triggered after any change in the client character's max inventory weight that can be carried.
AddEventHandler("esx:setMaxWeight", function(newWeight)
end)
esx:setJob
Triggered after any change in the client character's job.
AddEventHandler("esx:setJob", function(newJob, lastJob)
end)
esx:setDuty
Triggered after any change in the client character's job duty state.
AddEventHandler("esx:setDuty", function(dutyState)
end)
esx:setGroups
Triggered after any change in the client character's groups.
AddEventHandler("esx:setGroups", function(newGroups, lastGroups)
end)
esx:addGroup
Triggered after new addition of a group to the client character's groups.
AddEventHandler("esx:addGroup", function(groupName, groupGrade)
end)
esx:removeGroup
Triggered after new removal of a group from the client character's groups.
AddEventHandler("esx:removeGroup", function(groupName, groupGrade)
end)
esx:setMetadata
Triggered after any change in the client character's metadata.
AddEventHandler("esx:setMetadata", function(newMetadata, lastMetadata)
end)
esx:setPlayerData
Triggered after any change in the client character's player data.
AddEventHandler("esx:setPlayerData", function(key, newValue, lastValue)
end)