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:
BIN
resources/[framework]/[addons]/[quasar]/qs-weapondraw/.fxap
Normal file
BIN
resources/[framework]/[addons]/[quasar]/qs-weapondraw/.fxap
Normal file
Binary file not shown.
BIN
resources/[framework]/[addons]/[quasar]/qs-weapondraw/client.lua
Normal file
BIN
resources/[framework]/[addons]/[quasar]/qs-weapondraw/client.lua
Normal file
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
Config = {}
|
||||
|
||||
Config.WeapDraw = {
|
||||
variants = { 130, 122, 3, 6, 8 },
|
||||
weapons = {
|
||||
'WEAPON_PISTOL',
|
||||
'WEAPON_PISTOL_MK2',
|
||||
'WEAPON_COMBATPISTOL',
|
||||
'WEAPON_APPISTOL',
|
||||
'WEAPON_PISTOL50',
|
||||
'WEAPON_REVOLVER',
|
||||
'WEAPON_SNSPISTOL',
|
||||
'WEAPON_HEAVYPISTOL',
|
||||
'WEAPON_VINTAGEPISTOL'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
fx_version 'cerulean'
|
||||
|
||||
game 'gta5'
|
||||
|
||||
lua54 'yes'
|
||||
|
||||
shared_scripts {
|
||||
'config.lua'
|
||||
}
|
||||
|
||||
client_script {
|
||||
'client.lua'
|
||||
}
|
||||
|
||||
escrow_ignore {
|
||||
'config.lua'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
'/server:4752', -- ⚠️PLEASE READ⚠️ This requires at least server build 4700 or higher
|
||||
'qs-inventory' -- Required.
|
||||
}
|
||||
|
||||
dependency '/assetpacks'
|
||||
Reference in New Issue
Block a user