get framework jobs

These are not the same format, will need touchups
This commit is contained in:
MrNewb committed 2025-03-10 01:17:18 -04:00
1 parent f713fe2254
commit 8b59fe22aa
6 files changed
+45

No files matched your search

+12
View File
@@ -13,6 +13,18 @@ Framework.GetPlayerData = function()
return QBCore.Functions.GetPlayerData()
end
Framework.GetFrameworkJobs = function()
local jobs = {}
for k, v in pairs(QBCore.Shared.Jobs) do
table.insert(jobs, {
name = k,
label = v.label,
grade = v.grades
})
end
return jobs
end
Framework.GetPlayerDob = function()
local player = QBCore.Functions.GetPlayerData()
local playerData = player.PlayerData