mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Performance improvements
This commit is contained in:
+4
-5
@@ -251,17 +251,16 @@ end)
|
||||
|
||||
RegisterServerEvent('esx:updateLoadout')
|
||||
AddEventHandler('esx:updateLoadout', function(loadout)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
xPlayer.loadout = loadout
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
xPlayer.loadout = loadout
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx:updateLastPosition')
|
||||
AddEventHandler('esx:updateLastPosition', function(position)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
xPlayer.lastPosition = position
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
xPlayer.lastPosition = position
|
||||
end)
|
||||
|
||||
|
||||
RegisterServerEvent('esx:giveInventoryItem')
|
||||
AddEventHandler('esx:giveInventoryItem', function(target, type, itemName, itemCount)
|
||||
local _source = source
|
||||
|
||||
Reference in New Issue
Block a user