engineGetModelServerID
Client-side
Reverse-resolves a client runtime slot to its stable server logical model ID.
Syntax
int|false engineGetModelServerID(int runtimeModel)Arguments
runtimeModelintClient-local GTA runtime slot.
Returns
The server logical ID, or false when the slot is not server-managed.
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
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 →