DirkScripts Logo

Login With FiveM

Login

πŸ“š Dirk Lib
β€Ί
Modules
β€Ί

blip

Blip

ℹ️ Client Module - This can only be used on the client

lib.blip.register

Register a new blip to be shown on the map

lua
lib.blip.register(id, data)
Parameter TypeRequiredDescription
idStringtrueUnique reference for the blip
dataObjecttrueOptions for the blip, see Data Structure

lib.blip.get

Get a blip's data via it's id

lua
local blip = lib.blip.get(id)
Parameter TypeRequiredDescription
idStringtrueUnique reference for the blip

lib.blip.update

Update an existing blip's properties

lua
lib.blip.update(id, data)
ParameterTypeRequiredDescription
idstringyesUnique reference for the blip
datatableyesProperties to update (same fields as register)

lib.blip.delete

Remove a blip from the map and cache

lua
lib.blip.delete(id)
Parameter TypeRequiredDescription
idStringtrueUnique reference for the blip

Data Structure

This is the data structure of a blip and the valid options

lua
{
    -- Required
    pos = vector2(150.0, 100.0),    -- Used as the location on the map
    name = "Example Blip",          -- Label displayed on the map key
    sprite = 1,                     -- Sprite to be displayed
    display = 4,                    -- Display options
    scale = 1.0,                    -- Size of the blip
    color = 1,                      -- Color of the blip
    -- Not Required
    shortRange = false,             -- Is the blip short range
    category = 1,                   -- Category of the blip
    alpha = 255,                    -- Alpha (opacity) of the blip
    rotation = 0,                   -- Rotation
    route = false,                  -- Should the blip be routed to
    canSee = function()             -- Should the blip render
        return true
    end,                  
}

FiveM Blip Sprites Reference: https://docs.fivem.net/docs/game-references/blips/#blips β†—

FiveM Native SetBlipDisplay Reference: https://docs.fivem.net/natives/?_0x9029B2F3DA924928 β†—

Fivem Blip Colour Reference: https://docs.fivem.net/docs/game-references/blips/#blip-colors β†—

FiveM Native SetBlipCategory Reference: https://docs.fivem.net/natives/?_0x234CDD44D996FD9A β†—

Copyright Β© 2026 DirkScripts.

Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.