jobExists

Description

Checks whether a job with the given name exists in QBCore's shared jobs.

Parameters

  • jobName (string): The name of the job to check (e.g., "police").

Return Value

  • Returns true if the job exists.

  • Returns false if the job does not exist.

Example Use Case

if ps.jobExists("taxi") then
    print("The 'taxi' job is available.")
else
    print("The 'taxi' job does not exist.")
end

Last updated