- Documentation
- Blips
Category
Blips
All Lua functions and events in the Blips category, on the server and the client.
Server functions 4
addGives a blip icon a name. The name shows in the map legend (ESC) and in the tooltip when hovering over the icon.Map Blip Name addPlaces your own place name on the map (ESC), like the district names in the game.Map Zone Name removeRemoves an icon's name from the map legend.Map Blip Name removeRemoves a place label added withMap Zone Name addMapZoneName.
Client functions 1
Shared functions 28
areChecks whether player icons on the map are turned on.Player Blips Visible createCreates a blip, an icon on the radar and map, at the given point.Blip createCreates a blip attached to an element. The blip moves with it, for example with a vehicle or player.Blip Attached To getReturns the blip's colour.Blip Color getReturns the blip's icon number.Blip Icon getNewReturns the blip name set by setBlipName, orBlip Name falsewhen the blip has no name of its own.getReturns the blip's draw order. Blips with a higher value are drawn on top.Blip Ordering getReturns the blip's size.Blip Size getReturns the range from which the blip shows on the radar.Blip Visible Distance getReturns an icon's name from the map legend.Map Blip Name getReturns the whole map legend: every icon name set by scripts.Map Blip Names getReturns every place label scripts have added to the map.Map Zone Names getReturns the colour of a player's map icon.Player Blip Color getReturns the size of a player's map icon (0-25).Player Blip Size getReturns the player's GPS waypoint, the target they marked on the map or a script set. On the server it is the last point confirmed by the player's game.Player Waypoint isChecks whether a player's map icon is visible.Player Blip Visible removeRemoves the player's GPS waypoint.Player Waypoint setChanges the blip's colour. The colour shows on the plain square (iconBlip Color 0).setChanges the blip's icon.Blip Icon setNewSets the name of a single blip, shown in the tooltip when you hover it on the ESC map. An empty name (orBlip Name nil) goes back to the icon name from addMapBlipName. At most 64 bytes.setSets the blip's draw order. A blip with a higher value covers the others.Blip Ordering setChanges the blip size (the square, iconBlip Size 0).setSets how far away the blip shows on the radar.Blip Visible Distance setChanges the colour of a player's map icon (red by default). On the server everyone sees it, on the client the change is local to that player.Player Blip Color setChanges the size of a player's map icon.Player Blip Size 0hides it.setTurns the icons of all players on the map on or off. They are on by default.Player Blips Visible setShows or hides one player's map icon.Player Blip Visible setSets the game's GPS waypoint for a player: a target on the radar and map, and a road route while in a vehicle. The game confirms it withPlayer Waypoint onPlayerWaypointSet.