kBlipInfo | Minimap Blip Info System

Hello everyone just making a little release for a blip info system, add information to blips on your minimap with ease with kBlipInfo!


kBlipInfo is a FiveM script that allows you to create and manage detailed blip information on the map. This script provides a way to display custom information for blips, including titles, icons, descriptions, and reward texts.

Preview

Features

  • Create custom blip information with titles, icons, and descriptions.
  • Display reward texts such as cash, RP, and action points.
  • Support for various component types including basic, icon, social, divider, and description.

Installation

  1. Download the script and place it in your resources folder.

  2. Add the following line to your server.cfg:

    ensure kBlipInfo
    

Usage

Creating Blip Information

To create and update blip information, use the UpdateBlipInfo export. Below is an example of how to create a blip and set its information:

local blip = AddBlipForCoord(-123.6383, 562.4001, 196.0399)
SetBlipSprite(blip, 545) 
SetBlipDisplay(blip, 4)
SetBlipScale(blip, 0.9)
SetBlipColour(blip, 47)   
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString("Mountain Drift Circuit") 
EndTextCommandSetBlipName(blip)

local info = {
    setTitle = "Mountain Drift Circuit",
    setType = 1,
    setTexture = { dict = "pause_map", name = "pm_series_drift" },
    setCashText = "$25,000",
    setApText = "2500",
    setRpText = "5000",
    components = {
        { type = "icon", title = "Track Type", value = "Drift Course", iconIndex = 2, iconHudColor = 1, isTicked = false },
        { type = "basic", title = "Personal Best", value = "85,432 points" },
        { type = "social", title = "Creator", value = GetPlayerName(PlayerId()), isSocialClubName = true },
        { type = "divider" },
        { type = "description", value = "A challenging mountain course featuring tight hairpins and technical sections." },
        { type = "basic", title = "Track Length", value = "2.3 miles" },
        { type = "basic", title = "Elevation Change", value = "850 ft" }
    }
}

exports['kBlipInfo']:UpdateBlipInfo(blip, info)

Removing Blip Information

To remove blip information, use the RemoveBlipInfo export:

exports['kBlipInfo']:RemoveBlipInfo(blip)

Custom Images

You can stream custom images to use as icons. To do so, you need a .ytd file with your images. The images should be in a .dds file format with DXT1 compression and no mipmaps (for non-transparent Images). The dict is now the name of the .ytd file and the name is the name of the .dds file, both without the extension. There is a streamed .ytd file included, you can use that or add your own.

DUI Texture Support

You can use DUI textures for the image info all you need to do is have a valid image/gif url and do the following within info!

setTexture = {
    url = "imageurlhere",  -- image URL
    width = 498,    -- specify custom width (should be width of the image)
    height = 427    -- specify custom height (should be height of the image)
},

Configuration

In the config.lua file you can add some blips with infos to be created for you by the script so you don’t have to create everything through exports from other scripts. Take a look at the example.lua file for more info on the components.

KCore Framework Check out our latest project!

kBlip Info Docs :information_source:

image Download here

Resmon: 0.00(Inactive) | 0.02-0.03 (Active)

Credits: @Kypos @Loki_Leiche @Jordanpkl

More from us

:camera: BodycamV | Dashcams/Bodycams/CCTV With Recordings!
:taxi: Loki Taxi | Immersive Taxi System
:nauseated_face: K_Diseases | Diseases/Illnesses/Sick/Medicine
:poop: HygieneV | Pee/Poop/Shower/Bath/Porta Pottie
:desktop_computer: KBase Display Stands
:credit_card: K_FRAUD | ATM/CHECK/CARD FRAUD
:champagne: SpinTheBottle | FiveM Spin the bottle Script
:green_circle: [Standalone] K_HULK | Be The Incredible Hulk!
:bike: [QB] K_BMX | Pickup BMX’s | Store them on back!
:football: K_FOOTBALL | American Football / Rugby
More on KBase

Code is accessible Yes
Lines (approximately) 400
Requirements None
Support Yes
15 Likes

Was looking for this, thank you so much!! :star: :star: :star: :star: :star: :heart:

2 Likes

This is incredibly cool, I remember the last research into these was when glitch detector was doing it years ago but he never completed it. This is a different resource entirely but focuses on the same concepts. Incredible work, clean code. 10/10 This is cool.

2 Likes

Why set up two links The photo will be the same

1 Like

Should be fixed now, sorry about that :slight_smile:

1 Like

Nice work :+1:

2 Likes

Something Unique and OG , Nice work !

2 Likes

what does while active mean? is it while hovering?

What do you mean with while active?

nice release

2 Likes