RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_SHAPE_TEST_RESULT

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 };

SHAPETESTBuild 1207

Signature

lua
GetShapeTestResult(0, hit, endCoords, surfaceNormal, entityHit)
-- returns int

Parameters

NameTypeDescription
ScrHandle—
BOOL*—
Vector3*—
Vector3*—
Entity*—

Usage

lua
GetShapeTestResult(0, hit, endCoords, surfaceNormal, entityHit)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
Joaat hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details