Skip to content

engineGetModelIDFromName

Server-side

Available in Neon, not standard MTA

Resolves a server-managed model by resource-local or fully qualified name.

Syntax

int|false engineGetModelIDFromName(string name)

Arguments

namestring

Local name, or resource:name for an explicit qualified lookup.

Returns

The logical model ID, or false when no active definition matches.

Ownership and lifecycle

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

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →