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