GET_CLOSEST_CAR
Usage
local closestCar = Game.GetClosestCar(centreX, centreY, centreZ, radius, modelHashKey, searchFlags)
Get the closet random vehicle to a coord.
Parameters
centreXnumberfloatcentreYnumberfloatcentreZnumberfloatradiusnumberfloatmodelHashKeyintegerintsearchFlagsintegerint
Returns
closestCarintegerreturn value
Original declaration
// 0x2CB303F8
int GET_CLOSEST_CAR(float centreX, float centreY, float centreZ, float radius, int modelHashKey, int searchFlags);