21 lines
552 B
Lua
21 lines
552 B
Lua
if Config.Inventory ~= 'tgiann-inventory' then return end
|
|
|
|
SetTimeout(1000, function()
|
|
local state = GetResourceState('tgiann-inventory')
|
|
if state == 'started' or state == 'starting' then
|
|
exports["tgiann-inventory"]:DisplayMetadata({
|
|
CodemFormattedNumber = "Phone Number",
|
|
})
|
|
end
|
|
end)
|
|
|
|
|
|
function HasPhoneItems()
|
|
if Config.ItemRequired then
|
|
local inventory = exports["tgiann-inventory"]:HasItem(Config.ItemName, 1)
|
|
return inventory
|
|
else
|
|
return true
|
|
end
|
|
end
|