fix(qb-core): add global CreateUsableItem alias for qs-inventory compatibility
qs-inventory apelează CreateUsableItem ca funcție globală, dar qb-core definea doar QBCore.Functions.CreateUseableItem (cu 'e'). Adăugat alias global + fix 16 stringuri sparte în items.lua care blocau parsarea.
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
# FOR QBCore `qb-core/shared/items`
|
||||
```lua
|
||||
['backpack'] = { ['name'] = 'backpack', ['label'] = 'backpack', ['weight'] = 0, ['type'] = 'item', ['image'] = 'backpack.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'No have' },
|
||||
['backpack2'] = { ['name'] = 'backpack2', ['label'] = 'backpack2', ['weight'] = 0, ['type'] = 'item', ['image'] = 'backpack2.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'No have' },
|
||||
['briefcase'] = { ['name'] = 'briefcase', ['label'] = 'briefcase', ['weight'] = 0, ['type'] = 'item', ['image'] = 'briefcase.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'No have' },
|
||||
['paramedicbag'] = { ['name'] = 'paramedicbag', ['label'] = 'paramedicbag', ['weight'] = 0, ['type'] = 'item', ['image'] = 'paramedicbag.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'No have' },
|
||||
```
|
||||
|
||||
|
||||
# FOR ESX `qs-inventory/shared/items.lua`
|
||||
```lua
|
||||
['backpack'] = {
|
||||
['name'] = 'backpack',
|
||||
['label'] = 'backpack',
|
||||
['weight'] = 0,
|
||||
['type'] = 'item',
|
||||
['image'] = 'backpack.png',
|
||||
['unique'] = true,
|
||||
['useable'] = true,
|
||||
['shouldClose'] = true,
|
||||
['combinable'] = nil,
|
||||
['description'] = 'No have'
|
||||
},
|
||||
['backpack2'] = {
|
||||
['name'] = 'backpack2',
|
||||
['label'] = 'backpack2',
|
||||
['weight'] = 0,
|
||||
['type'] = 'item',
|
||||
['image'] = 'backpack2.png',
|
||||
['unique'] = true,
|
||||
['useable'] = true,
|
||||
['shouldClose'] = true,
|
||||
['combinable'] = nil,
|
||||
['description'] = 'No have'
|
||||
},
|
||||
['briefcase'] = {
|
||||
['name'] = 'briefcase',
|
||||
['label'] = 'briefcase',
|
||||
['weight'] = 0,
|
||||
['type'] = 'item',
|
||||
['image'] = 'briefcase.png',
|
||||
['unique'] = true,
|
||||
['useable'] = true,
|
||||
['shouldClose'] = true,
|
||||
['combinable'] = nil,
|
||||
['description'] = 'No have'
|
||||
},
|
||||
['paramedicbag'] = {
|
||||
['name'] = 'paramedicbag',
|
||||
['label'] = 'paramedicbag',
|
||||
['weight'] = 0,
|
||||
['type'] = 'item',
|
||||
['image'] = 'paramedicbag.png',
|
||||
['unique'] = true,
|
||||
['useable'] = true,
|
||||
['shouldClose'] = true,
|
||||
['combinable'] = nil,
|
||||
['description'] = 'No have'
|
||||
},
|
||||
```
|
||||
Reference in New Issue
Block a user