mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 20:01:27 +00:00
Fix message pack Error
This commit is contained in:
+4
-2
@@ -4,7 +4,8 @@ TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
|
||||
|
||||
ESX.RegisterUsableItem('bread', function(source)
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(_source)
|
||||
|
||||
xPlayer.removeInventoryItem('bread', 1)
|
||||
|
||||
@@ -16,7 +17,8 @@ end)
|
||||
|
||||
ESX.RegisterUsableItem('water', function(source)
|
||||
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(_source)
|
||||
|
||||
xPlayer.removeInventoryItem('water', 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user