🚨Wanted UI - Outdated
Sending wanted notifications.

Video
Useable upperLocText
Usable default rdr text
Example
local data = {
upperLocText = "BOUNTY",
firstMessage = {
text = "Text 1",
timeout = 1000,
},
secondMessage = {
text = "Text 2",
timeout = 2000,
},
thirdMessage = {
text = "Text 3",
timeout = 2000,
},
lastMessage = {
text = "INTIMIDATION",
textfromrdr = true, -- if you set this to true, custom text not available. Check readme file more default text.
timeout = 2000, -- if you set lastmessage timeout, it will be shown for this time and then disappear
},
showBountyHunterMessage = false, -- show bounty hunter message http://prntscr.com/gDsOV-qLN_4W
upperTextPulse = false, -- pulse the upper text
showWarningAnimation = false, -- notification sound and animation
}
local notifdata = exports["qadr_ui"]:showWanted(data)
Usable functions
notifdata.updatemessage(messageIndex,message)
notifdata.updatetitle(title)
notifdata.showBountyHunterMessage(boolean)
notifdata.showWarningAnimation(boolean)
notifdata.setPulse(boolean)
notifdata.close()
notifdata.startShortCooldown(boolean)
notifdata.startLongCooldown(boolean)
notifdata.setTextIndex(int) -- must 1 - 4 1 = firstmessage, 4 = lastmessage
Command Example
RegisterCommand("sow",function(src,args,raw)
local notifdata = exports["qadr_ui"]:showWanted(data)
Wait(5000)
print("trigger notifdata.updatemessage")
notifdata.updatemessage("lastMessage","BOUNTY") -- if you set "textfromrdr" to true, you can't use custom text for updates.
Wait(5000)
print("trigger notifdata.updatemessage")
notifdata.updatemessage("firstMessage","Edited first message")
Wait(5000)
print("trigger notifdata.updatemessage")
notifdata.updatemessage("secondMessage","Edited secondmessage")
Wait(2000)
print("trigger notifdata.updatetitle")
notifdata.updatetitle("MALE_WANTED")
Wait(2000)
print("trigger notifdata.showBountyHunterMessage")
notifdata.showBountyHunterMessage(true) -- If this value is set to "TRUE" once, it cannot be set to "TRUE" again. It must be set to "FALSE" first.
Wait(2000)
print("trigger notifdata.showWarningAnimation")
notifdata.showWarningAnimation(true)
Wait(2000)
print("trigger notifdata.setPulse")
notifdata.setPulse(true)
Wait(2000)
print("trigger notifdata.setTextIndex")
notifdata.setTextIndex(3) -- Show thirdMessage
Wait(2000)
print("trigger notifdata.startShortCooldown")
notifdata.startShortCooldown(true,function() -- Set only one to "TRUE" at the same time!
print("Short cooldown finished")
end)
Wait(2000)
print("trigger notifdata.startLongCooldown")
notifdata.startLongCooldown(true,function() -- Set only one to "TRUE" at the same time!
print("Long cooldown finished")
end)
Wait(2000)
print("trigger notifdata.close")
notifdata.close()
end)
Last updated