GET_INTERIOR_LOCATION_AND_NAMEHASH
Hash
0x8451E87D3C2B0286Runtime name
GetInteriorLocationAndNamehashNamespaceINTERIOR
SideClient
NameOfficial
Docs
Since build1207
Signature
void GET_INTERIOR_LOCATION_AND_NAMEHASH(Interior interior, Vector3* position, Hash* nameHash);Parameters
| Name | Type | Description |
|---|---|---|
interior | Interior | — |
position | Vector3* | — |
nameHash | Hash* | — |
Returns void
Usage
local position, nameHash = GetInteriorLocationAndNamehash(interior)
-- always works, by hash
local position, nameHash = Citizen.InvokeNative(0x8451E87D3C2B0286, interior, Citizen.PointerValueVector(), Citizen.PointerValueInt())JavaScript and C#
const [position, nameHash] = GetInteriorLocationAndNamehash(interior);
// by hash
const [position, nameHash] = Citizen.invokeNative('0x8451E87D3C2B0286', interior, Citizen.pointerValueVector(), Citizen.pointerValueInt());var position = new OutputArgument();
var nameHash = new OutputArgument();
Function.Call((Hash)0x8451E87D3C2B0286, interior, position, nameHash);
// position.GetResult<Vector3>()
// nameHash.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.