SetBlipFlashTimer
DocsSetBlipFlashTimer(blip, duration)Description
Flashes blip for time in milliseconds before stopping.
Parameters
| Name | Type | Description |
|---|---|---|
blip | Blip | The blip to start flashing |
duration | int | Time in milliseconds to flash the blip before stopping |
Quick Snippet: Create Blipblip
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
voidThis native does not return a value.
Examples
Official
local blip = AddBlipForCoord(0, 0, 0)
-- flash blip for seven seconds then stop
SetBlipFlashTimer(blip, 7000)