- Documentation
- Client functions
- engineRestoreBlipIcon
Function
engineRestoreBlipIcon
Restores the game icon after engineReplaceBlipIcon. Without an argument it restores every icon replaced by this resource.
Syntax
bool engineRestoreBlipIcon([int iconID = nil])Arguments
iconIDint, optional = nil- Icon number 0-63; omitted = every icon of this resource.
Returns
true when something was restored.
Example
engineRestoreBlipIcon(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.isBlipIconReplacedChecks whether the blip icon with this number has a custom image fromengineReplaceBlipIcon.