Shopping Cart
RELEASE fizzfau ui Releases Cfxre Community

[RELEASE] fizzfau-ui – Releases – Cfx.re Community


A Basic UI Notification System

image

There are two basic exports, the important part is id logic.

exports["fizzfau-ui"]:DrawNotify(id, text, color, icon)
  exports["fizzfau-ui"]:Clear(id)
exports["fizzfau-ui"]:DrawNotify("fizzfau-ui:drawthetextplease", "Hello FiveM", rgba(0,0,0,0.0) or nil, " any fas fa icons" or nil)
  exports["fizzfau-ui"]:Clear("fizzfau-ui:drawthetextplease")

If you want to use this in a while loop you need to check it with variable control like:

  if not send then
    send = true
    exports["fizzfau-ui"]:Clear("fizzfau-ui:drawthetextplease")
  end

otherwise resmon values can be higher and loads of notifications spams on screen.

Css reworked a bit not like in the video. Diffrences are ui comes in with slide efffect and fadeout on clearing.

css credit: @Erennitros



Original source: https://forum.cfx.re/t/release-fizzfau-ui/2094483

Leave a Reply
FiveM ESX Scripts

The best scripts and maps

Best support

Problems? We are there to help!

Wide range of products

We have a wide range of products

100% Secure Checkout

Easy and encrypted