Skip to content

engineGetModelParent

Server-side

Returns the native GTA parent of an active server-managed logical model.

Syntax

int|false engineGetModelParent(int model)

Arguments

modelint

Logical model ID.

Returns

The native parent model ID, or false when the model is not registered.

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 →