client
AddBlipForCoord
FiveM client native documentation with a Lua example.
Summary
Adds a map blip at coordinates. The core native for marking shops, jobs, and points of interest on the map/minimap.
Returns
Blip (number) — the blip handle.
Parameters
x,y,zfloatThe location.Example
local blip = AddBlipForCoord(x, y, z)
SetBlipSprite(blip, 52)
SetBlipColour(blip, 2)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName('STRING')
AddTextComponentSubstringPlayerName('Garage')
EndTextCommandSetBlipName(blip)Common pitfalls
- Set sprite, colour, and name after creating, or you get a default white blip.
- Use SetBlipAsShortRange so it doesn't clutter the full map.
- Remove with RemoveBlip when no longer needed.
Related natives
Related guides
FiveM scripts done right
Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.
Browse Scripts →