_GET_CLOSEST_BLIP_OF_TYPE
Docslocal retval = GetClosestBlipOfType(blipSprite)Description
Introduced in build 1180
Parameters
| Name | Type | Description |
|---|---|---|
blipSprite | int | — |
Quick Snippet: Create Blip→ Blip
→ BlipUse this to create or reference a map blip for this native.
-- Create a blip at the player's position
local coords = GetEntityCoords(PlayerPedId())
local blip = AddBlipForCoord(coords.x, coords.y, coords.z)
SetBlipSprite(blip, 1) -- Standard blip icon
SetBlipColour(blip, 1) -- Red color
SetBlipScale(blip, 0.8)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentSubstringPlayerName("My Blip")
EndTextCommandSetBlipName(blip)
print("Blip created: " .. blip)Returns
BlipReturns a blip handle.