Vector3 GET_COORDS_PLAYER_IS_FREE_AIMING_AT() { Ped player_ped = PLAYER::PLAYER_PED_ID(); Vector3 camPos = CAM::GET_GAMEPLAY_CAM_COORD(); Vector3 camRot = CAM::GET_GAMEPLAY_CAM_ROT(2); Vector3 dir = RotationToDirection(camRot); // Raycast distance float dist = 1000.0f; Vector3 end = { camPos.x + dir.x * dist, camPos.y + dir.y * dist, camPos.z + dir.z * dist }; int handle = SHAPETEST::START_EXPENSIVE_SYNCHRONOUS_SHAPE_TEST_LOS_PROBE(camPos.x, camPos.y, camPos.z, end.x, end.y, end.z, 1, player_ped, 7 ); //result BOOL hit = false; Vector3 hitCoords = Vector3(); Vector3 surfaceNormal = Vector3(); Ped entityHit = NULL; SHAPETEST::GET_SHAPE_TEST_RESULT(handle, &hit, &hitCoords, &surfaceNormal, &entityHit); //If don't get anything right, return the max coord return hit ? hitCoords : end; } The START_EXPENSIVE_SYNCHRONOUS_SHAPE_TEST_LOS_PROBE is detecting only collisions with the world. It is not decting collisions with entities. Can someone help me?