FORCE_ROOM_FOR_ENTITY
Hash
0xBC29A9894C976945Runtime name
ForceRoomForEntityNamespaceINTERIOR
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x52923C4710DD9907Signature
void FORCE_ROOM_FOR_ENTITY(Entity entity, Interior interior, Hash roomHashKey);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
interior | Interior | — |
roomHashKey | Hash | — |
Returns void
Usage
ForceRoomForEntity(entity, interior, roomHashKey)
-- always works, by hash
Citizen.InvokeNative(0xBC29A9894C976945, entity, interior, roomHashKey)JavaScript and C#
ForceRoomForEntity(entity, interior, roomHashKey);
// by hash
Citizen.invokeNative('0xBC29A9894C976945', entity, interior, roomHashKey);Function.Call((Hash)0xBC29A9894C976945, entity, interior, roomHashKey);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.