mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 17:28:56 +00:00
47 lines
1.2 KiB
Lua
47 lines
1.2 KiB
Lua
QBCore = {
|
|
Config = {},
|
|
Shared = {
|
|
Jobs = {},
|
|
Gangs = {},
|
|
Items = {},
|
|
Vehicles = {},
|
|
Weapons = {},
|
|
VehicleHashes = {},
|
|
},
|
|
Player = {},
|
|
Players = {},
|
|
PlayerData = {},
|
|
Functions = {},
|
|
ClientCallbacks = {},
|
|
ServerCallbacks = {},
|
|
Player_Buckets = {},
|
|
Entity_Buckets = {},
|
|
UsableItems = {},
|
|
Commands = {
|
|
List = {},
|
|
IgnoreList = {
|
|
['god'] = true,
|
|
['user'] = true
|
|
}
|
|
}
|
|
}
|
|
|
|
local function GetCoreObject(filters)
|
|
if not filters then return QBCore end
|
|
local results = {}
|
|
for i = 1, #filters do
|
|
local key = filters[i]
|
|
if QBCore[key] then
|
|
results[key] = QBCore[key]
|
|
end
|
|
end
|
|
return results
|
|
end
|
|
|
|
exports('GetCoreObject', GetCoreObject)
|
|
exports('GetSharedItems', function() return QBCore.Shared.Items end)
|
|
exports('GetSharedVehicles', function() return QBCore.Shared.Vehicles end)
|
|
exports('GetSharedWeapons', function() return QBCore.Shared.Weapons end)
|
|
exports('GetSharedJobs', function() return QBCore.Shared.Jobs end)
|
|
exports('GetSharedGangs', function() return QBCore.Shared.Gangs end)
|