getSharedJob

Description

Retrieves the shared job table from QBCore using the job name (e.g., "police").

This includes all job properties like labels, grades, type, etc.

Parameters

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

Return Value

  • Returns the full job table if found.

  • Returns nil if the job does not exist.

Example Use Case

local job = ps.getSharedJob("taxi")
if job then
    print("Job label: " .. job.label)
else
    print("Job not found.")
end

Last updated