1
0
Fork 0
forked from Simnation/Main

Update open.lua

This commit is contained in:
Nordi98 2025-07-27 03:11:16 +02:00
parent efaef09a83
commit 8d321f20cf

View file

@ -55,7 +55,7 @@ if not Config.UseOldSlingScript then
end end
-- INVENTORY HAS ITEM CHECK -- INVENTORY HAS ITEM CHECK
function CheckHasWeapon(Weapon) function CheckHasWeapon(Weapon)
if GetResourceState("qs-inventory") == 'started' then if GetResourceState("qs-inventory") == 'started' then
local count = exports['qs-inventory']:Search(Weapon) local count = exports['qs-inventory']:Search(Weapon)
if count > 0 then if count > 0 then
@ -75,14 +75,8 @@ if not Config.UseOldSlingScript then
return false return false
end end
elseif GetResourceState("tgiann-inventory") == 'started' then elseif GetResourceState("tgiann-inventory") == 'started' then
local count = exports["tgiann-inventory"]:Items(Weapon) -- Fixed implementation for tgiann-inventory
print("Miho output... \n Weapon: "..Weapon) return exports["tgiann-inventory"]:HasItem(Weapon, 1)
if count then
return true
else
return false
end
elseif GetResourceState("core_inventory") == 'started' then elseif GetResourceState("core_inventory") == 'started' then
if Framework == "QBCore" then if Framework == "QBCore" then
local citizenid = FWork.Functions.GetPlayerData().citizenid local citizenid = FWork.Functions.GetPlayerData().citizenid
@ -108,7 +102,8 @@ if not Config.UseOldSlingScript then
end end
return FinalValue return FinalValue
end end
end end
local function CheckJobVerified() local function CheckJobVerified()
local PlayerJob = Config.FrameworkFunctions.GetPlayer().PlayerData.job.name local PlayerJob = Config.FrameworkFunctions.GetPlayer().PlayerData.job.name