RedM Natives

FORCE_ROOM_FOR_ENTITY

Hash0xBC29A9894C976945
Runtime nameForceRoomForEntity
NamespaceINTERIOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x52923C4710DD9907

Signature

void FORCE_ROOM_FOR_ENTITY(Entity entity, Interior interior, Hash roomHashKey);

Parameters

NameTypeDescription
entityEntity—
interiorInterior—
roomHashKeyHash—

Returns void

Usage

Lua
ForceRoomForEntity(entity, interior, roomHashKey)

-- always works, by hash
Citizen.InvokeNative(0xBC29A9894C976945, entity, interior, roomHashKey)
JavaScript and C#
JavaScript
ForceRoomForEntity(entity, interior, roomHashKey);

// by hash
Citizen.invokeNative('0xBC29A9894C976945', entity, interior, roomHashKey);
C#
Function.Call((Hash)0xBC29A9894C976945, entity, interior, roomHashKey);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.