From GT-MP
Jump to: navigation, search
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Sets the range status of a blip.


API.setBlipShortRange(NetHandle blip, bool range);

Required Arguments

  • blip: The blip to set the range status. This parameter input should be in NetHandle type.
  • range: The range status to set. This parameter input should be in bool type. If this parameter is set to false, the blip can be seen from anywhere on the mini-map (displayed globally). If it's set to true, the blip can only be seen by players close to it.
Note that this function is related to the mini-map only; players could still see the blip anywhere by viewing the entire map, regardless of the blip range status.

Usage example(s)

Toggle the range status of a blip.

API.setBlipShortRange(myBlip, !API.getBlipShortRange(myBlip));