engineGetModelRuntimeID
Client-side
Resolves a stable server model ID to the GTA runtime slot allocated on this client.
Syntax
int|false engineGetModelRuntimeID(int serverModel)Arguments
serverModelintServer 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
SOURCECLuaEngineDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp INTRODUCED / EXTENDEDa7a20d32bRead the commit and why the change was made RELATED CATEGORY HARNESS server-model-registry-test Category-level coverage · test-resources/server-model-registry-test
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Server-authoritative models works →