API REFERENCE

GetAllVehiclesModel

Returns all known vehicle models as an array of { hash, name } tables.

Syntax

local models = ONYX.GetAllVehiclesModel()

Parameters

None

Return(s)

models (table) — sequential array of { hash = uint32, name = string }.

Behavior

  • The list is static and does not include custom add-on vehicles loaded after startup.

Example(s)

for _, entry in ipairs(ONYX.GetAllVehiclesModel()) do
  print(string.format("%08X %s", entry.hash, entry.name))
end