The RedM developer’s field guide
Know the native.
Build the world.
Engine functions, framework docs, and game assets.
One reference. From the first lookup to the last line.
knowledge base
Explore / RedM
Native reference
- SHAPETESTAny
_0x04AA59CA40571C2E
Description not yet documented
0x04AA59CA40571C2E - SHAPETESTint
GET_SHAPE_TEST_RESULT
Returns the result of a shape test: 0 if the handle is invalid, 1 if the shape test is still pending, or 2 if the shape test has completed, and the handle should be invalidated. When used with an asynchronous shape test, this native should be looped until returning 0 or 2, after which the handle is invalidated. enum eShapeTestStatus { SHAPETEST_STATUS_NONEXISTENT, SHAPETEST_STATUS_RESULTS_NOTREADY, SHAPETEST_STATUS_RESULTS_READY };
0xEDE8AC7C5108FB1D - SHAPETESTScrHandle
START_EXPENSIVE_SYNCHRONOUS_SHAPE_TEST_LOS_PROBE
Does the same as [START_SHAPE_TEST_LOS_PROBE](#\_0x7EE9F5D83DD4F90E), except blocking until the shape test completes. Use [START_SHAPE_TEST_LOS_PROBE](#\_0x7EE9F5D83DD4F90E) instead. Literally. Rockstar named this correctly: it's expensive, and it's synchronous.
0x377906D8A31E5586 - SHAPETESTScrHandle
START_SHAPE_TEST_BOX
For more information, see [`START_EXPENSIVE_SYNCHRONOUS_SHAPE_TEST_LOS_PROBE`](#\_0x377906D8A31E5586) and [`START_SHAPE_TEST_LOS_PROBE`](#\_0x7EE9F5D83DD4F90E).
0xFE466162C4401D18 - SHAPETESTScrHandle
START_SHAPE_TEST_CAPSULE
Raycast from point to point, where the ray has a radius.
0x28579D1B8F8AAC80 - SHAPETESTScrHandle
START_SHAPE_TEST_LOS_PROBE
Asynchronously starts a line-of-sight (raycast) world probe shape test. ```cpp enum eTraceFlags { None = 0, IntersectWorld = 1, IntersectVehicles = 2, IntersectPeds = 4, IntersectRagdolls = 8, IntersectObjects = 16, IntersectPickup = 32, IntersectGlass = 64, IntersectRiver = 128, IntersectFoliage = 256, IntersectEverything = 511 } ``` ```cpp enum eTraceOptionFlags { None = 0, OptionIgnoreGlass = 1, OptionIgnoreSeeThrough = 2, OptionIgnoreNoCollision = 4, OptionDefault = 7 } ``` NOTE: Raycasts that intersect with mission_entites (flag = 2) has limited range and will not register for far away entites. The range seems to be about 30 metres. Use the handle with [GET_SHAPE_TEST_RESULT](#\_0x3D87450E15D98694) or [GET_SHAPE_TEST_RESULT_INCLUDING_MATERIAL](#\_0x65287525D951F6BE) until it returns 0 or 2.
0x7EE9F5D83DD4F90E - SHAPETESTScrHandle
START_SHAPE_TEST_MOUSE_CURSOR_LOS_PROBE
Old name: _START_SHAPE_TEST_SURROUNDING_COORDS
0x9839013D8B6014F1 - SHAPETESTScrHandle
START_SHAPE_TEST_SWEPT_SPHERE
Description not yet documented
0xAA5B7C8309F73230
A living reference. Documentation coverage varies by native and source.