forked from Simnation/Main
ed
This commit is contained in:
parent
59951edece
commit
cb3d888d34
5 changed files with 6 additions and 18 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
fx_version 'cerulean'
|
||||
game 'gta5'
|
||||
|
||||
|
@ -24,5 +23,6 @@ lua54 'yes'
|
|||
dependencies {
|
||||
'qb-target',
|
||||
'qb-core',
|
||||
'ox_lib'
|
||||
}
|
||||
'ox_lib',
|
||||
'tgiann-inventory'
|
||||
}
|
||||
|
|
|
@ -7,20 +7,8 @@ end
|
|||
|
||||
-- Function to check if player has an item
|
||||
local function HasItem(source, itemName, amount)
|
||||
local items = exports["tgiann-inventory"]:GetPlayerItems(source)
|
||||
if not items then return false end
|
||||
|
||||
local count = 0
|
||||
for _, item in pairs(items) do
|
||||
if item.name == itemName then
|
||||
count = count + item.count
|
||||
if count >= amount then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return false
|
||||
local itemCount = exports["tgiann-inventory"]:GetItemCount(source, itemName)
|
||||
return itemCount >= amount
|
||||
end
|
||||
|
||||
-- Event for client to check if player has an item
|
||||
|
|
|
@ -10320,7 +10320,7 @@ itemsData = {
|
|||
weight = 800,
|
||||
label = 'Magnetangel Seil',
|
||||
unique = true,
|
||||
useable = false,
|
||||
useable = true,
|
||||
image = 'magnet_rope.png',
|
||||
name = 'magnet_rope',
|
||||
},
|
||||
|
|
BIN
resources/[phone]/xsound/html/sounds/anchordown.ogg
Normal file
BIN
resources/[phone]/xsound/html/sounds/anchordown.ogg
Normal file
Binary file not shown.
BIN
resources/[phone]/xsound/html/sounds/anchorup.ogg
Normal file
BIN
resources/[phone]/xsound/html/sounds/anchorup.ogg
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue