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:
@@ -45,7 +45,7 @@ Locales = Locales or {}
|
||||
the asset to ensure everything works as expected!
|
||||
]]
|
||||
|
||||
Config.Language = 'ro'
|
||||
Config.Language = 'en'
|
||||
|
||||
--[[
|
||||
Framework configuration and tools of your server!
|
||||
@@ -59,7 +59,7 @@ local qbHas = GetResourceState('qb-core') == 'started'
|
||||
local qbxHas = GetResourceState('qbx_core') == 'started'
|
||||
|
||||
Config.Framework = esxHas and 'esx' or qbHas and 'qb' or qbxHas and 'qbx' or 'esx'
|
||||
Config.UseTarget = true -- true or false
|
||||
Config.UseTarget = false -- true or false
|
||||
|
||||
Config.UseItemLicenses = true -- If you set true, the item will be required for the shop. But if you set false, if you using esx it will use esx_license if you using qb it will be use metadata.licenses for that.
|
||||
|
||||
@@ -74,7 +74,7 @@ Config.DeliveryPrice = 500
|
||||
Config.RewardItem = 'cryptostick'
|
||||
Config.Fuel = 'LegacyFuel'
|
||||
|
||||
Config.EnableDelivery = false
|
||||
Config.EnableDelivery = true
|
||||
Config.DeliveryText = '[E] - Interact'
|
||||
Config.DeliveryLocations = {
|
||||
['main'] = { label = 'GO Postal', coords = vector4(69.0862, 127.6753, 79.2123, 156.7736) },
|
||||
@@ -1094,58 +1094,58 @@ Config.Locations = {
|
||||
]]
|
||||
|
||||
Config.Stashes = {
|
||||
-- [1] = {
|
||||
-- ['coords'] = vector3(450.6766052246094, -978.5770874023438, 30.68960952758789),
|
||||
-- ['targetLabel'] = 'Open Stash',
|
||||
-- ['size'] = {
|
||||
-- weight = 50000,
|
||||
-- slots = 15
|
||||
-- },
|
||||
-- ['blip'] = {
|
||||
-- name = 'Police Stash',
|
||||
-- coords = vector3(450.6766052246094, -978.5770874023438, 30.68960952758789),
|
||||
-- sprite = 1,
|
||||
-- color = 38,
|
||||
-- size = 0.5
|
||||
-- },
|
||||
-- ['label'] = 'police_stash',
|
||||
-- ['requiredJobs'] = { 'police' }, -- nil or example { 'police', 'ambulance' }
|
||||
-- ['requiredJobsGrades'] = { 2, 3, 4 },
|
||||
-- ['requiredLicense'] = nil, -- nil or example 'itemname',
|
||||
-- ['personal'] = false,
|
||||
-- ['distance'] = 5.0
|
||||
-- },
|
||||
-- [2] = {
|
||||
-- ['coords'] = vector3(306.303284, -1457.709839, 29.953857),
|
||||
-- ['targetLabel'] = 'Open Stash',
|
||||
-- ['size'] = {
|
||||
-- weight = 9500,
|
||||
-- slots = 15
|
||||
-- },
|
||||
-- ['blip'] = nil,
|
||||
-- ['label'] = 'doctor_stash',
|
||||
-- ['requiredJobs'] = { 'ambulance' }, -- nil or example { 'police', 'ambulance' }
|
||||
-- ['requiredJobsGrades'] = nil, -- nil or grade tables example { 2, 3, 4},
|
||||
-- ['requiredLicense'] = nil, -- nil or example 'itemname',
|
||||
-- ['personal'] = false,
|
||||
-- ['distance'] = 5.0
|
||||
-- },
|
||||
-- [3] = {
|
||||
-- ['coords'] = vector3(237.481323, -1354.747192, 31.032227),
|
||||
-- ['targetLabel'] = 'Open Stash',
|
||||
-- ['size'] = {
|
||||
-- weight = 10000,
|
||||
-- slots = 50
|
||||
-- },
|
||||
-- ['blip'] = nil,
|
||||
-- ['label'] = 'mysterious_shed',
|
||||
-- -- ['requiredJobs'] = nil, -- nil or example { 'police', 'ambulance' }
|
||||
-- -- ['requiredJobsGrades'] = nil, -- nil or grade tables example { 2, 3, 4},
|
||||
-- -- ['requiredLicense'] = nil, -- nil or example 'itemname',
|
||||
-- ['requiredGangs'] = { 'ballas' },
|
||||
-- ['personal'] = true,
|
||||
-- ['distance'] = 5.0
|
||||
-- }
|
||||
[1] = {
|
||||
['coords'] = vector3(450.6766052246094, -978.5770874023438, 30.68960952758789),
|
||||
['targetLabel'] = 'Open Stash',
|
||||
['size'] = {
|
||||
weight = 50000,
|
||||
slots = 15
|
||||
},
|
||||
['blip'] = {
|
||||
name = 'Police Stash',
|
||||
coords = vector3(450.6766052246094, -978.5770874023438, 30.68960952758789),
|
||||
sprite = 1,
|
||||
color = 38,
|
||||
size = 0.5
|
||||
},
|
||||
['label'] = 'police_stash',
|
||||
['requiredJobs'] = { 'police' }, -- nil or example { 'police', 'ambulance' }
|
||||
['requiredJobsGrades'] = { 2, 3, 4 },
|
||||
['requiredLicense'] = nil, -- nil or example 'itemname',
|
||||
['personal'] = false,
|
||||
['distance'] = 5.0
|
||||
},
|
||||
[2] = {
|
||||
['coords'] = vector3(306.303284, -1457.709839, 29.953857),
|
||||
['targetLabel'] = 'Open Stash',
|
||||
['size'] = {
|
||||
weight = 9500,
|
||||
slots = 15
|
||||
},
|
||||
['blip'] = nil,
|
||||
['label'] = 'doctor_stash',
|
||||
['requiredJobs'] = { 'ambulance' }, -- nil or example { 'police', 'ambulance' }
|
||||
['requiredJobsGrades'] = nil, -- nil or grade tables example { 2, 3, 4},
|
||||
['requiredLicense'] = nil, -- nil or example 'itemname',
|
||||
['personal'] = false,
|
||||
['distance'] = 5.0
|
||||
},
|
||||
[3] = {
|
||||
['coords'] = vector3(237.481323, -1354.747192, 31.032227),
|
||||
['targetLabel'] = 'Open Stash',
|
||||
['size'] = {
|
||||
weight = 10000,
|
||||
slots = 50
|
||||
},
|
||||
['blip'] = nil,
|
||||
['label'] = 'mysterious_shed',
|
||||
-- ['requiredJobs'] = nil, -- nil or example { 'police', 'ambulance' }
|
||||
-- ['requiredJobsGrades'] = nil, -- nil or grade tables example { 2, 3, 4},
|
||||
-- ['requiredLicense'] = nil, -- nil or example 'itemname',
|
||||
['requiredGangs'] = { 'ballas' },
|
||||
['personal'] = true,
|
||||
['distance'] = 5.0
|
||||
}
|
||||
}
|
||||
|
||||
--[[
|
||||
@@ -1153,6 +1153,6 @@ Config.Stashes = {
|
||||
but it's only for development.
|
||||
]]
|
||||
|
||||
Config.ZoneDebug = false
|
||||
Config.ZoneDebug = true
|
||||
|
||||
Config.Debug = false
|
||||
Config.Debug = true
|
||||
|
||||
Reference in New Issue
Block a user