ed
This commit is contained in:
parent
875c8448e1
commit
c81ae4bb6d
219 changed files with 8036 additions and 7 deletions
29
resources/[tools]/bl_bridge/server/inventory/esx.lua
Normal file
29
resources/[tools]/bl_bridge/server/inventory/esx.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
local overrideFunction = {}
|
||||
|
||||
overrideFunction.methods = {
|
||||
addItem = {
|
||||
originalMethod = 'addInventoryItem',
|
||||
},
|
||||
removeItem = {
|
||||
originalMethod = 'removeInventoryItem',
|
||||
},
|
||||
getItem = {
|
||||
originalMethod = 'getInventoryItem',
|
||||
},
|
||||
setMetaData = { -- not exist :()
|
||||
|
||||
},
|
||||
canCarryItem = {
|
||||
originalMethod = 'canCarryItem',
|
||||
},
|
||||
items = {
|
||||
originalMethod = 'getInventory',
|
||||
modifier = {
|
||||
effect = function(originalFun)
|
||||
return originalFun.items
|
||||
end
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
return overrideFunction
|
Loading…
Add table
Add a link
Reference in a new issue