Native referenceRedMclient

_GET_GROUND_Z_AND_MATERIAL_FOR_3D_COORD

0xBBE5B63EFFB08E68 MISC
FUNCTION SIGNATURE
BOOL _GET_GROUND_Z_AND_MATERIAL_FOR_3D_COORD(Any coords, int flags, float* groundZ, Hash* material, int* outFlags);
Property Value
Native Name _GET_GROUND_Z_AND_MATERIAL_FOR_3D_COORD
Hash 0xBBE5B63EFFB08E68
Return Type BOOL
Build 1207
API Set client
Parameters coords (Any), flags (int), groundZ (float*), material (Hash*), outFlags (int*)

Description: Outputs the ground Z axis, its outMaterialHash and flags. Input flags are 17, 129 or 3423 in R* scripts. Surely similar to flags of shapes test.

Usage

Lua (Direct):

local result = GetGroundZAndMaterialFor3dCoord(coords, flags, groundZ, material, outFlags)

Lua (Hash):

local result = Citizen.InvokeNative(0xBBE5B63EFFB08E68, coords, flags, groundZ, material, outFlags)
Back to MISC