Skip to main content

Shared Exports

GetJobs​

Returns the jobs table.

exports.qbx_core:GetJobs()

Returns: table<string, Job>

GetGangs​

Returns the gangs table.

exports.qbx_core:GetGangs()

Returns: table<string, Gang>

GetJob​

Returns the given job if it exists.

exports.qbx_core:GetJob(jobName)
  • jobName: string

Returns: Job?

GetGang​

Returns the given gang if it exists.

exports.qbx_core:GetGang(gangName)
  • gangName: string

Returns: Gang?

GetVehiclesByName​

Returns a table mapping vehicle name to vehicle.

exports.qbx_core:GetVehiclesByName(vehicle)
  • vehicle?: string

Returns: table<string, Vehicle>

GetVehiclesByHash​

Returns a table mapping vehicle hash to vehicle.

exports.qbx_core:GetVehiclesByHash(vehicle)
  • vehicle?: number

Returns: table<number, Vehicle>

GetVehiclesByCategory​

Returns a table mapping vehicle category to vehicles.

exports.qbx_core:GetVehiclesByCategory()

Returns: table<string, Vehicle[]>

GetWeapons​

Returns the weapons table.

exports.qbx_core:GetWeapons(weapon)
  • weapon?: number

Returns: table<number, Weapon>

GetLocations​

Returns the locations table.

exports.qbx_core:GetLocations()

Returns: table<string, vector4>