Duty Toggles

Needs Tested
This commit is contained in:
MrNewb committed 2025-01-12 12:55:29 -05:00
1 parent ecaf970e48
commit 7e294b55fa
3 files changed
+19 -1

No files matched your search

+6
View File
@@ -182,6 +182,12 @@ Framework.SetPlayerJob = function(src, name, grade)
return player.Functions.SetJob(name, grade)
end
Framework.ToggleDuty = function(src, status)
local player = QBCore.Functions.GetPlayer(src)
player.Functions.SetJobDuty(status)
TriggerEvent('QBCore:Server:SetDuty', src, player.PlayerData.job.onduty)
end
-- Framework.AddAccountBalance(src, _type, amount)
-- Adds the specified amount to the player's account balance of the specified type.
Framework.AddAccountBalance = function(src, _type, amount)