mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 23:06:04 +01:00
Compare commits
3 Commits
20cea95783
...
6166314cbf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6166314cbf | ||
|
|
9fa8f58cfb | ||
|
|
ed997ad8a2 |
@@ -56,7 +56,7 @@ local InvFunc = {
|
|||||||
local weight = 0
|
local weight = 0
|
||||||
local itemcheck = getPlayerInv(src)
|
local itemcheck = getPlayerInv(src)
|
||||||
for _, v in pairs(itemcheck) do
|
for _, v in pairs(itemcheck) do
|
||||||
weight += ((v.weight * v.amount) or 0)
|
weight += ((v.weight * (v.amount or v.count)) or 0)
|
||||||
end
|
end
|
||||||
return weight
|
return weight
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ local progressFunc = {
|
|||||||
if exports[OXLibExport]:progressBar(options) then
|
if exports[OXLibExport]:progressBar(options) then
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
print("^1progressBar was not successful")
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
--- Registers a command with the active command system.
|
--- Registers a command with the active command system.
|
||||||
--- This function supports multiple command systems (OXLib, qb-core, ESX Legacy).
|
--- This function supports multiple command systems (OXLib, qb-core, ESX Legacy).
|
||||||
---
|
---
|
||||||
@@ -47,7 +46,7 @@ function registerCommand(command, options)
|
|||||||
optionTable.helpInfo,
|
optionTable.helpInfo,
|
||||||
optionTable.subText,
|
optionTable.subText,
|
||||||
optionTable.argsRequired,
|
optionTable.argsRequired,
|
||||||
optionTable.funt,
|
optionTable.funct,
|
||||||
optionTable.restriction or nil
|
optionTable.restriction or nil
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -57,7 +56,7 @@ function registerCommand(command, options)
|
|||||||
optionTable.helpInfo,
|
optionTable.helpInfo,
|
||||||
optionTable.subText,
|
optionTable.subText,
|
||||||
optionTable.argsRequired,
|
optionTable.argsRequired,
|
||||||
optionTable.funt,
|
optionTable.funct,
|
||||||
optionTable.restriction or nil
|
optionTable.restriction or nil
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user