GET_INTERIOR_LOCATION_AND_NAMEHASH
Writes the position and name hash of the given interior into the output pointers.
Signature
void GET_INTERIOR_LOCATION_AND_NAMEHASH(Interior interior, Vector3* position, Hash* nameHash); // 0x8451E87D3C2B0286 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | interior | Interior |
| 2 | position | Vector3* (out pointer) |
| 3 | nameHash | Hash* (out pointer) |
Facts
| Name | GET_INTERIOR_LOCATION_AND_NAMEHASH |
|---|---|
| Hash | 0x8451E87D3C2B0286 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local position, nameHash = Citizen.InvokeNative(0x8451E87D3C2B0286, -- GET_INTERIOR_LOCATION_AND_NAMEHASH
0, -- Interior interior
Citizen.PointerValueVector(), -- Vector3* position
Citizen.PointerValueInt() -- Hash* nameHash
)
print(position, nameHash)const [position, nameHash] = Citizen.invokeNative("0x8451E87D3C2B0286", // GET_INTERIOR_LOCATION_AND_NAMEHASH
0, // Interior interior
Citizen.pointerValueVector(), // Vector3* position
Citizen.pointerValueInt() // Hash* nameHash
);
console.log(position, nameHash)var positionArg = new OutputArgument();
var nameHashArg = new OutputArgument();
Function.Call((Hash)0x8451E87D3C2B0286, // GET_INTERIOR_LOCATION_AND_NAMEHASH
0, // Interior interior
positionArg, // Vector3* position
nameHashArg // Hash* nameHash
);
Vector3 position = positionArg.GetResult<Vector3>();
int nameHash = nameHashArg.GetResult<int>();Related INTERIOR natives
- GET_INTERIOR_AT_COORDS
- GET_INTERIOR_AT_COORDS_WITH_TYPE
- GET_INTERIOR_AT_COORDS_WITH_TYPEHASH
- GET_INTERIOR_FROM_COLLISION
- GET_INTERIOR_FROM_ENTITY
- GET_INTERIOR_FROM_PRIMARY_VIEW
- _GET_INTERIOR_MINIMAP_HASH
- _GET_INTERIOR_POSITION
- GET_KEY_FOR_ENTITY_IN_ROOM
- GET_ROOM_KEY_FROM_ENTITY
- _IS_INTERIOR_ENTITY_SET_VALID
- ACTIVATE_INTERIOR_ENTITY_SET
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.