# Bounty Poster

{% hint style="warning" %}
This is an experimental work. In some cases, it may not work properly!
{% endhint %}

{% hint style="warning" %}
According to the PosterID variable you use, all objects in the world are affected. For this reason, the data should be displayed when the player is close to the object, and the data should be cleared if the player is far away.

* Poster0 : mp005\_p\_mp\_bountyposter01x
* Poster1 : mp005\_p\_mp\_bountyposter02x
* Poster2 : mp005\_p\_mp\_bountyposter03x
  {% endhint %}

{% hint style="warning" %}
You cannot repeatedly create posters with the same Poster ID.&#x20;

So to create a poster again, clean up the old poster.

```lua
poster:clear()
```

{% endhint %}

### Video

{% embed url="<https://youtu.be/3pGN9d7Yviw>" %}

## Poster Data

### Poster ID

You can create different 3 poster with poster id.

For these 3 posters object, you can fill in the poster information using the Poster Id variables.

* Poster0 : mp005\_p\_mp\_bountyposter01x
* Poster1 : mp005\_p\_mp\_bountyposter02x
* Poster2 : mp005\_p\_mp\_bountyposter03x

### Type

You can change poster type.

Min : 0 Max : 6

### Example

```lua
RegisterCommand("createPoster",function()
    local posterData = {
        tex = "bounty_target_02",
        txd = "bounty_target_02",
        isVisible = true,
        isDiffVisible = false,
        type = 1,
        difficulty = 1,
        price = "price",
        body = "body",
        header = "header",
        name = "name",
        posterid = "Poster0"
    }
    local poster1 = createPoster(posterData)
    print("poster1 created")
    Wait(300)
    
    posterData.price = "price2"
    posterData.body = "body2"
    posterData.header = "header2"
    posterData.name = "name2"
    posterData.posterid = "Poster1"
    posterData.tex = "bounty_target_03"
    posterData.txd = "bounty_target_03"
    local poster2 = createPoster(posterData)
    print("poster2 created")
    Wait(300)
    
    posterData.price = "price3"
    posterData.body = "body3"
    posterData.header = "header3"
    posterData.name = "name3"
    posterData.posterid = "Poster2"
    posterData.tex = "bounty_target_04"
    posterData.txd = "bounty_target_04"
    local poster3 = createPoster(posterData)
    print("poster3 created")
    print("all posters created")
    Wait(1000)    
    print("waited 1 second")
    for i=0,5 do        
        posterData.type = i 
        posterData.price = posterData.price.." - "..i
        posterData.body = posterData.body.." - "..i
        posterData.header = posterData.header.." - "..i
        posterData.name = posterData.name.." - "..i
        posterData.tex = "bounty_target_05"
        posterData.txd = "bounty_target_05"
        poster1:update(posterData)
        print("poster1 updated")
        
        posterData.tex = "bounty_target_06"
        posterData.txd = "bounty_target_06"
        poster2:update(posterData)
        print("poster2 updated")
        
        
        posterData.tex = "bounty_target_07"
        posterData.txd = "bounty_target_07"
        poster3:update(posterData)
        print("poster3 updated")
        Wait(1000)    
        print("waited 1 second")
    end
    Wait(5000)
    print("waited 5 seconds")
    poster1:clear()
    poster2:clear()
    poster3:clear()
    print("all posters cleared")
end)
```


---

# 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/bounty-poster.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.
