Worldprobe::getShapeTestResultEx
Not available on SYNC MP yet
This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.
behaves exactly the same way as GET_SHAPE_TEST_RESULT except it has one extra parameter (_materialHash).
Quick disassembly seems to indicate that the unknown is a hash. EDIT: Seems to be the hash of the hit material or surface type.
found a materialFX.dat list of them but not sure if it has to do with this native yet.
Syntax
mp.game.worldprobe.getShapeTestResultEx(rayHandle, hit, endCoords, surfaceNormal, _materialHash, entityHit);
Required Arguments
- rayHandle: int
- hit: BOOL
- endCoords: Vector3
- surfaceNormal: Vector3
- _materialHash: Hash
- entityHit: Entity handle or object
Return value
- object: hit, endCoords, surfaceNormal, _materialHash, entityHit
Example
// todo