GET_CLOSEST_CHAR
Usage
local closestChar, charIndex = Game.GetClosestChar(centreX, centreY, centreZ, radius, scanRandomPeds, scanMissionPeds)
Trys to get closest random char to a coord.
Parameters
centreXnumberfloatcentreYnumberfloatcentreZnumberfloatradiusnumberfloatscanRandomPedsbooleanboolscanMissionPedsbooleanbool
Returns
closestCharbooleanreturn valuecharIndexintegerint*
Original declaration
// 0x0F4B0239
bool GET_CLOSEST_CHAR(float centreX, float centreY, float centreZ, float radius, bool scanRandomPeds, bool scanMissionPeds, int* charIndex);