- Documentation
- Client functions
- isBlipIconReplaced
Function
isBlipIconReplaced
Checks whether the blip icon with this number has a custom image from engineReplaceBlipIcon.
Syntax
bool isBlipIconReplaced(int iconID)Arguments
iconIDint- Icon number 0-63.
Returns
true = the icon is replaced.
Example
outputChatBox(tostring(isBlipIconReplaced(40)))
See also
engineReplaceBlipIconReplaces the image of a game blip icon (number 0-63, e.g. 40) with your own image. The image is a resource file (PNG, JPG, BMP or GIF, listed inmeta.xmlas<file>, also:resource/file.png) or image data, e.g. read withfileRead. The new icon shows everywhere the game draws that number: on the radar, on the ESC menu map and in its legend. Blips with that icon keep working the same way (mouse hover, names, ordering). A square image with a transparent background works best; anything larger than 256 px is scaled down. When the resource stops, the game icon comes back.engineRestoreBlipIconRestores the game icon afterengineReplaceBlipIcon. Without an argument it restores every icon replaced by this resource.