ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getVehicleTypeNames

Function

getVehicleTypeNames

Server and clientVehiclesTrilogy Hub only

Returns the names of all vehicle kinds, sorted alphabetically.

Syntax

table getVehicleTypeNames()

Returns

An array of type names.

Example

for _, name in ipairs(getVehicleTypeNames()) do
    outputDebugString(name .. ": " .. #getVehicleModelsOfType(name))
end

See also