Skip to content

engineGetModels

Server-side

Enumerates active server-managed logical model IDs, optionally filtered by type.

Syntax

table|false engineGetModels([string type])

Arguments

typestringoptional

Optional object, vehicle, or ped filter.

Returns

An array of logical model IDs, or false for an invalid filter.

Ownership and lifecycle

The server keeps logical IDs stable, but each client chooses its own GTA slot. When a resource stops, San Andreas Online moves surviving elements back to their parent model before freeing those slots.

Where this comes from

RELATED SA:O APIS

Continue exploring

Read the system guide →