mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
(Feature): Commented out dupe function and added new modifier.
This commit is contained in:
1 parent
c8fd806d57
commit
7d867252b0
4 files changed
+74
-7
No files matched your search
@@ -40,4 +40,23 @@ ESX.RegisterServerCallback('phone:getItemAmount', function(source, cb, item)
|
||||
else
|
||||
cb(items.count)
|
||||
end
|
||||
end)
|
||||
|
||||
----
|
||||
--Destroy Phone
|
||||
--
|
||||
|
||||
ESX.RegisterServerCallback('phone:removephone', function(source, cb, item)
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local items = xPlayer.getInventoryItem(item)
|
||||
|
||||
if items == nil then
|
||||
cb(0)
|
||||
else
|
||||
cb(items.count)
|
||||
if items.count > 0 then
|
||||
xPlayer.removeInventoryItem('phone', items.count)
|
||||
xPlayer.addInventoryItem('dphone', items.count)
|
||||
end
|
||||
end
|
||||
end)
|
||||
Reference in new issue
Block a user