new Float:x, Float:y, Float:z; GetVehPos(id, x, y, z); // id = trailer id If(IsPlayerInRangeOfPoint(playerid, 5, x, y, z)) { //Let's code stuff //end of code }