Resources
Exports
Shared

Shared Exports

Some of these exports use custom types. You can learn more about those in the Types section of this resource.

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()

Returns: table<string, Vehicle>

GetVehiclesByHash

Returns a table mapping vehicle hash to vehicle.

exports.qbx_core:GetVehiclesByHash()

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()

Returns: table<number, Weapon>

GetLocations

Returns the locations table.

exports.qbx_core:GetLocations()

Returns: table<string, vector4>