small tweaks

This commit is contained in:
MrNewb committed 2025-06-21 07:53:49 -04:00
1 parent 4817b092fb
commit 854482094a
3 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -299,12 +299,12 @@ end
---@param src number
---@param status boolean
---@return boolean
Framework.SetPlayerDuty = function(src, dutystatus)
Framework.SetPlayerDuty = function(src, status)
local xPlayer = Framework.GetPlayer(src)
if not xPlayer then return false end
local job = xPlayer.getJob()
if not job.onDuty then return false end
xPlayer.setJob(job.name, job.grade, dutystatus)
xPlayer.setJob(job.name, job.grade, status)
return true
end