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