Strengthen toggleItem security

- locked down `addItem` to be a lot more strict to reduce exploits
- fixed issue for if no supported inventory was found it now uses the correct functions
This commit is contained in:
Jim Shield committed 2026-11-05 18:03:24 +00:00
1 parent 8c947aae73
commit 40eed38dc2
4 files changed
+573 -55

No files matched your search

+3 -1
View File
@@ -33,7 +33,7 @@ Exports = {
}
-- Required variables
debugMode = false
debugMode = true
QBInvNew = true
@@ -181,6 +181,7 @@ for _, v in pairs({ -- This is a specific load order
'make/loaders.lua',
'make/makeBlip.lua',
'make/makePed.lua',
'make/pedTasks.lua',
'make/makeProp.lua',
'make/makeVeh.lua',
'make/cameras.lua',
@@ -188,6 +189,7 @@ for _, v in pairs({ -- This is a specific load order
'wrapperfunctions.lua',
'polyZone.lua',
'clientItemAllowlist.lua',
'itemcontrol.lua',
'playerfunctions.lua',
'metaHandlers.lua',