_GET_IPL_BOUNDING_SPHERE
Outputs IPL position and radius (previously wrongly named heading)
Hash
0x9C77964B0E07B633Runtime name
GetIplBoundingSphereNamespaceSTREAMING
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _GET_IPL_BOUNDING_SPHERE(Hash iplHash, Vector3* position, float* radius);Parameters
| Name | Type | Description |
|---|---|---|
iplHash | Hash | — |
position | Vector3* | — |
radius | float* | — |
Returns BOOL
Description
Outputs IPL position and radius (previously wrongly named heading)
https://github.com/femga/rdr3_discoveries/blob/master/imaps/imaps_with_coords_and_heading.lua
femga rdr3_discoveries · research notes
// 0x9C77964B0E07B633 (by Disquse)
BOOL _GET_IMAP_POSITION_AND_HEADING(Hash imapHash, Vector3* position, float* heading);
/*
This one can be extremely useful for imap researching.
*/
Usage example:
local isValid, position, heading = Citizen.InvokeNative(0x9C77964B0E07B633, 2040843256, Citizen.PointerValueVector(), Citizen.PointerValueFloat(), Citizen.ResultAsInteger(), Citizen.ReturnResultAnyway())
if isValid then
local ped = PlayerPedId()
SetEntityCoords(ped, position)
SetEntityHeading(ped, heading)
endUsage
local retval, position, radius = GetIplBoundingSphere(iplHash)
-- always works, by hash
local retval, position, radius = Citizen.InvokeNative(0x9C77964B0E07B633, iplHash, Citizen.PointerValueVector(), Citizen.PointerValueFloat(), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, position, radius] = GetIplBoundingSphere(iplHash);
// by hash
const [retval, position, radius] = Citizen.invokeNative('0x9C77964B0E07B633', iplHash, Citizen.pointerValueVector(), Citizen.pointerValueFloat(), Citizen.returnResultAnyway());var position = new OutputArgument();
var radius = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x9C77964B0E07B633, iplHash, position, radius);
// position.GetResult<Vector3>()
// radius.GetResult<float>()- 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`. - Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · femga rdr3_discoveries
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.