WE DONT PROVIDE ANY SUPPORT OF THIS TO USE. ITS A DEVELOPER RESOURCE NOT MEANT FOR PEOPLE WITHOUT DEV-KNOWLEDGE!
FEEL FREE TO INTEGRATE IN YOUR SCRIPTS!
Preview
Installation
Add this in your server.cfg above the resource using exports:
start mfp_blips
start UR-RESOURCE
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
exports['mfp_blips']:SetBlipInfoImage(blip, "texturename", "imagename") -- like imagename from imagename.dds or .jpeg, texturename from texturename.ytd. Dont insert formates!exports['mfp_blips']:SetBlipInfoTitle(blip, "Title", true)exports['mfp_blips']:SetBlipInfoEconomy(blip, "1 123", "4552")exports['mfp_blips']:AddBlipInfoText(blip, "Text", "Your Text")exports['mfp_blips']:AddBlipInfoName(blip, "Name", "mfpscripts.com")exports['mfp_blips']:AddBlipInfoHeader(blip, "Header", "This is my own text")exports['mfp_blips']:AddBlipInfoIcon(blip, "Blip", "Suit -->", 16, 0, true)
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:
exports['mfp_blips']:SetBlipInfoImage(blip, "texturename", "imagename") -- like imagename from imagename.dds or .jpeg, texturename from texturename.ytd. -- Dont insert formates!