Page cover

πŸ—ΊοΈAdvancedBlips

This is AdvancedBlips for your scripts. Free to use for all creators!

WE DONT PROVIDE ANY SUPPORT OF THIS TO USE. ITS A DEVELOPER RESOURCE NOT MEANT FOR PEOPLE WITHOUT DEV-KNOWLEDGE!

Preview

Screenshot from MFP_Banking-Blip

Installation

Add this in your server.cfg above the resource using exports:

Exports

ResetBlipInfo(blip): Clears all blip information and disables the information popup when selected.

SetBlipInfoTitle(blip, title, rockstarVerified): Defines the title for the information popup and toggles the Rockstar-verified icon.

SetBlipInfoImage(blip, dict, tex): Sets the header image for the information popup.

SetBlipInfoEconomy(blip, rp, money): Customizes the visual representation for RP and Money in the popup. Empty strings disable the respective icons.

AddBlipInfoText(blip, leftText, rightText): Appends a line of text to the information popup.

AddBlipInfoName(blip, leftText, rightText): Appends a line of text to the information popup, with the right text appearing in bold.

AddBlipInfoHeader(blip, leftText, rightText): Appends a line to the information popup, including a separator between this line and the previous one.

AddBlipInfoIcon(blip, leftText, rightText, iconId, iconColor, checked): Appends a line to the information popup, incorporating a blip icon. The iconId can range from 0 to 25, and iconColor appears to match with blip colors.

SetBlipInfo(blip, infoData): Sets the raw information data for advanced usage.

Usage

IMPORTANT

If you want to use banner img make sure to stream the texture first! You need this inside your code when you want to use this

You need to have a texturename.ytd in a stream folder in your resource. In this texturefile is your image locaded by default its dds, you can use openiv to just drag and drop a jpeg or png and its automaticly converted! After this just ad following to your handfull exports:

πŸ’Έ EXAMPLE USED IN MFP_Banking

Thats it!

Last updated