Skip to main content

swapDuty

swapDuty is an ox_lib callback function, it gets the players current jobname and swaps it to the job specified in the configuration.

  • Return: table
    • status: bool,
    • was: string, -- old job
lib.callback('op-vehlock:getKeysOnPlate', false, function(result)
if result.status then
-- state change success
else
-- state change unsuccessfull
end
end)