Wanted UI - Outdated
Sending wanted notifications.
Last updated
Sending wanted notifications.
Last updated
THEFT : Theft
MURDER : Murder
BOUNTY : BOUNTY
MALE_WANTED : WANTED
ASSAULT : Assault
ROBBERY : Robbery
LOOTING : Looting
WITNESS : WITNESS
CHEATING : Cheating
THEFT_LIVESTOCK : Rustling
VANDALISM : Vandalism
NO_BOUNTY : No Bounty
KIDNAPPING : Kidnapping
ACCOMPLICE : Accomplice
Key : Text - Use key for data
KIDNAPPING : Kidnapping
INTIMIDATION : Intimidation
ASSAULT_HORSE : Animal Cruelty
JACK_VEHICLE : Vehicle Theft
TRAIN_ROBBERY : Train Robbery
LASSO_ASSAULT : Assault
THEFT_HORSE : Horse Theft
STOLEN_GOODS : Theft
ACCOMPLICE : Accomplice
TRAMPLE_LAW : Murder
BANK_ROBBERY : Bank Robbery
STAGECOACH_ROBBERY : Robbery
LAW_IS_THREATENED : Disturbing the Peace
ROBBERY : Robbery
ASSAULT : Assault
KIDNAPPING_LAW : Kidnapping
ASSAULT_CORPSE : Disturbing the Peace
VEHICLE_DESTRUCTION : Vandalism
FEMALE_WANTED : WANTED
CHEATING : Cheating
DISTURBANCE : Disturbing the Peace
VANDALISM_VEHICLE : Vandalism
MURDER_LIVESTOCK : Animal Cruelty
ASSAULT_LIVESTOCK : Animal Cruelty
JACK_HORSE : Horse Theft
MURDER_HORSE : Animal Cruelty
VANDALISM : Vandalism
TRAMPLE : Murder
THREATEN_LAW : Disturbing the Peace
UNARMED_ASSAULT : Unarmed Assault
ASSAULT_ANIMAL : Animal Cruelty
BURGLARY : Trespassing
THREATEN : Disturbing the Peace
TRESPASSING : Trespassing
THEFT_LIVESTOCK : Rustling
RESIST_ARREST : Disturbing the Peace
THEFT : Theft
MURDER : Murder
PROPERTY_DESTRUCTION : Vandalism
ASSAULT_LAW : Assault
LOOTING : Looting
HIT_AND_RUN_LAW : Unarmed Assault
THEFT_VEHICLE : Vehicle Theft
MURDER_LAW : Murder
JAIL_BREAK : Jail Break
LOITERING : Disturbing the Peace
MURDER_ANIMAL : Animal Cruelty
HIT_AND_RUN : Unarmed Assault
EXPLOSION : Disturbing the Peace
MALE_WANTED : WANTED
GRAVE_ROBBERY : Grave Robbery
HASSLE : Disturbing the Peace
WITNESS : WITNESS
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)
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
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)