mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 09:18:56 +00:00
Upload shared files
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user