forked from Simnation/Main
ed
This commit is contained in:
parent
81001f8b7f
commit
df42f2a9dd
3 changed files with 8 additions and 5 deletions
|
@ -6362,7 +6362,7 @@ itemsData = {
|
|||
type = 'item',
|
||||
unique = true,
|
||||
description = 'Dose Cola',
|
||||
image = 'ecolazerocan.png',
|
||||
image = 'ecola_zero_dose.png',
|
||||
shouldClose = true,
|
||||
label = 'E-Cola Zero Dose',
|
||||
name = 'ecola_zero_dose',
|
||||
|
|
|
@ -42,7 +42,7 @@ Link = {
|
|||
--- 'core_inventory' -- Core inventory system (c8re)
|
||||
--- 'ak47_inventory' -- AK47 inventory system (menan)
|
||||
--- 'origen_inventory' -- Origen inventory system
|
||||
Link.inventory = 'framework'
|
||||
Link.inventory = 'tgiann-inventory'
|
||||
|
||||
|
||||
--- NOTIFICATION OPTIONS
|
||||
|
|
|
@ -80,7 +80,7 @@ function RegisterUsableItem(...)
|
|||
QBCore.Functions.CreateUseableItem(...)
|
||||
end
|
||||
|
||||
if Link.inventory == 'framework' or Link.inventory == 'qb-inventory' then
|
||||
if Link.inventory == 'framework' or Link.inventory == 'qb-inventory' or Link.inventory == 'tgiann-inventory' then
|
||||
function GetPlayerItemData(player, item)
|
||||
local xPlayer = QBCore.Functions.GetPlayer(player)
|
||||
|
||||
|
@ -109,11 +109,13 @@ if Link.inventory == 'framework' or Link.inventory == 'qb-inventory' then
|
|||
-- Stash
|
||||
function OpenCustomStash(player, stashId, label, slots, weight)
|
||||
local data = { label = label, maxweight = weight, slots = slots }
|
||||
exports['qb-inventory']:OpenInventory(player, stashId, data)
|
||||
exports["tgiann-inventory"]:OpenInventory(player, "stash", stashId, data)
|
||||
end
|
||||
|
||||
function GetStashItems(stashId)
|
||||
local invData = exports['qb-inventory']:GetInventory(stashId)
|
||||
-- Anmerkung: Diese Funktion muss möglicherweise angepasst werden,
|
||||
-- abhängig davon, wie tgiann-inventory Stash-Items abruft
|
||||
local invData = exports["tgiann-inventory"]:GetInventory("stash", stashId)
|
||||
if invData == nil or invData == {} then
|
||||
return {}
|
||||
end
|
||||
|
@ -121,6 +123,7 @@ if Link.inventory == 'framework' or Link.inventory == 'qb-inventory' then
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
function GetPlayerCharacterId(player)
|
||||
local xPlayer = QBCore.Functions.GetPlayer(tonumber(player))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue