The Lab
PATH native

GET_APPROX_FLOOR_FOR_POINT

returns float2 paramsbuild 1207

Returns an approximate floor height at the given X/Y position.

Signature

C
float GET_APPROX_FLOOR_FOR_POINT(float x, float y); // 0x336511A34F2E5185 b1207

Parameters

#NameType
1xfloat
2yfloat

Facts

Facts about GET_APPROX_FLOOR_FOR_POINT
Name
GET_APPROX_FLOOR_FOR_POINT
Hash
0x336511A34F2E5185
Namespace
Returns
float
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x336511A34F2E5185, -- GET_APPROX_FLOOR_FOR_POINT
  0.0, -- float x
  0.0, -- float y
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x336511A34F2E5185", // GET_APPROX_FLOOR_FOR_POINT
  0.0, // float x
  0.0, // float y
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0x336511A34F2E5185, // GET_APPROX_FLOOR_FOR_POINT
  0.0f, // float x
  0.0f // float y
);
All PATH natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.