# Wanted UI - Outdated

![](https://580445893-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzf2ZAqGbUPk9K8cVFSgd%2Fuploads%2FjeFxRd1NC1d1WIQ5CvGs%2Fimage%20\(15\).png?alt=media\&token=378092e8-96db-4a4d-8ec1-94c235ec48c3)

### Video

{% embed url="<https://www.youtube.com/watch?v=ehQYXhRsgkA>" %}

### Useable upperLocText

<details>

<summary>Useable upperLocText</summary>

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

</details>

### Usable default rdr text

<details>

<summary>Usable default rdr text</summary>

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

</details>

### Example

{% code title="Example" %}

```lua
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)
```

{% endcode %}

### 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

{% code title="Command Example" %}

```lua
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)
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://abdulkadir-aktas.gitbook.io/qadr_docs/qadr_ui/wanted-ui-outdated.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
