get framework jobs
These are not the same format, will need touchups
This commit is contained in:
1 parent
f713fe2254
commit
8b59fe22aa
6 files changed
+45
No files matched your search
@@ -23,6 +23,10 @@ Framework.GetPlayerIdentifier = function(src)
|
||||
return xPlayer.getIdentifier()
|
||||
end
|
||||
|
||||
Framework.GetFrameworkJobs = function()
|
||||
return ESX.GetJobs()
|
||||
end
|
||||
|
||||
-- Framework.GetPlayerName(src)
|
||||
-- Returns the first and last name of the player.
|
||||
Framework.GetPlayerName = function(src)
|
||||
@@ -274,6 +278,10 @@ AddEventHandler("playerDropped", function()
|
||||
TriggerEvent("community_bridge:Server:OnPlayerUnload", src)
|
||||
end)
|
||||
|
||||
lib.callback.register('community_bridge:Callback:GetFrameworkJobs', function(source)
|
||||
return Framework.GetFrameworkJobs() or {}
|
||||
end)
|
||||
|
||||
Framework.Commands = {}
|
||||
Framework.Commands.Add = function(name, help, arguments, argsrequired, callback, permission, ...)
|
||||
ESX.RegisterCommand(name, permission, function(xPlayer, args, showError)
|
||||
|
||||
Reference in new issue
Block a user