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',
|
type = 'item',
|
||||||
unique = true,
|
unique = true,
|
||||||
description = 'Dose Cola',
|
description = 'Dose Cola',
|
||||||
image = 'ecolazerocan.png',
|
image = 'ecola_zero_dose.png',
|
||||||
shouldClose = true,
|
shouldClose = true,
|
||||||
label = 'E-Cola Zero Dose',
|
label = 'E-Cola Zero Dose',
|
||||||
name = 'ecola_zero_dose',
|
name = 'ecola_zero_dose',
|
||||||
|
|
|
@ -42,7 +42,7 @@ Link = {
|
||||||
--- 'core_inventory' -- Core inventory system (c8re)
|
--- 'core_inventory' -- Core inventory system (c8re)
|
||||||
--- 'ak47_inventory' -- AK47 inventory system (menan)
|
--- 'ak47_inventory' -- AK47 inventory system (menan)
|
||||||
--- 'origen_inventory' -- Origen inventory system
|
--- 'origen_inventory' -- Origen inventory system
|
||||||
Link.inventory = 'framework'
|
Link.inventory = 'tgiann-inventory'
|
||||||
|
|
||||||
|
|
||||||
--- NOTIFICATION OPTIONS
|
--- NOTIFICATION OPTIONS
|
||||||
|
|
|
@ -80,7 +80,7 @@ function RegisterUsableItem(...)
|
||||||
QBCore.Functions.CreateUseableItem(...)
|
QBCore.Functions.CreateUseableItem(...)
|
||||||
end
|
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)
|
function GetPlayerItemData(player, item)
|
||||||
local xPlayer = QBCore.Functions.GetPlayer(player)
|
local xPlayer = QBCore.Functions.GetPlayer(player)
|
||||||
|
|
||||||
|
@ -109,11 +109,13 @@ if Link.inventory == 'framework' or Link.inventory == 'qb-inventory' then
|
||||||
-- Stash
|
-- Stash
|
||||||
function OpenCustomStash(player, stashId, label, slots, weight)
|
function OpenCustomStash(player, stashId, label, slots, weight)
|
||||||
local data = { label = label, maxweight = weight, slots = slots }
|
local data = { label = label, maxweight = weight, slots = slots }
|
||||||
exports['qb-inventory']:OpenInventory(player, stashId, data)
|
exports["tgiann-inventory"]:OpenInventory(player, "stash", stashId, data)
|
||||||
end
|
end
|
||||||
|
|
||||||
function GetStashItems(stashId)
|
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
|
if invData == nil or invData == {} then
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
|
@ -121,6 +123,7 @@ if Link.inventory == 'framework' or Link.inventory == 'qb-inventory' then
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function GetPlayerCharacterId(player)
|
function GetPlayerCharacterId(player)
|
||||||
local xPlayer = QBCore.Functions.GetPlayer(tonumber(player))
|
local xPlayer = QBCore.Functions.GetPlayer(tonumber(player))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue