Skip to content

engineGetModelRuntimeID

Client-side

Available in Neon, not standard MTA

Resolves a stable server model ID to the GTA runtime slot allocated on this client.

Syntax

int|false engineGetModelRuntimeID(int serverModel)

Arguments

serverModelint

Server logical model ID.

Returns

The local runtime slot, or false while no slot is active.

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.

Important behavior
  • Replacement APIs that operate on GTA slots must receive this runtime ID, not the stable logical ID.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →