# \[QB/ESX] Character Attributes \[PAID]

<figure><img src="/files/b2wQUg1hIyKYdC7Oc3Oe" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This script allows you write a description about your character. Once you've done so, other players are able to /examine your ID & view your characters description for roleplay purposes. You're able to display your height/age & a text description about your character like "Isaiah Spade loves football, eating etc.." . This is an SAMP/GTA.WRLD inspired feature developed for FiveM servers.
{% endhint %}

<figure><img src="/files/DFHJUGMsoanVW7HQYe8v" alt=""><figcaption></figcaption></figure>

Configurable Age👨

> Change your Age so players can then view it & have an idea of the age you're roleplaying as.

Configurable Height 🧍‍♂️

> Change your height so players can then view it & have an idea of the height  you're roleplaying as.

Configurable Description 📝

> Configurable characteristics about your character.

Configurable Notification 💬

> Change your notification to preset ones or add your own (ESX/OX/QB/other)

Configurable Apostrophe option for the message. 🔗

> Enable/disable if you want a automatic apostrophe added or not.

Configurable Warn on Relog 📢

> Automatically warn a player if they don't have a attribute set.

```
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
```

<figure><img src="/files/LhinZZRSRrF3cHV4BUcL" alt=""><figcaption></figcaption></figure>

* This resource is drag/drop. You will just have to change your framework inside shared file to whichever framework you're on & then change the text to your liking. You will also need to add the following inside of your server.cfg after you've dropped the file into your resources.

> <mark style="color:orange;">ensure adminplus-attributes</mark>

{% hint style="warning" %}
Feel free to check the shared folder to be able to enable/disable some of the options the script provides.
{% endhint %}

```lua
-- ███████████████████████████████████████████████████████████████████████████ --                                                                                                                                  

Config = {}

Config.Framework = 1 -- (ESX == 1), (QB == 2)
Config.FrameworkExport = 'es_extended' -- (ESX == 'es_extended'), (QB == 'qb-core')

Config.Notify = 'ox' -- 'ox'/'esx'/'qb'/'other'

Config.UseApostrophe = false -- do you want to add apostrophe to player's name?. (if true then will look like == "Isaiah Spades's Attributes", if false then will look like == Isaiah Spade Attributes)
Config.EnableWarnOnRelog = true -- do you want to warn players in chat everytime a player joins so they can set a attribute if they don't have one?
Config.MinimumAge = 18
Config.MaximumAge = 40

Config.Commands = {
    ClearAttributes = 'attributesclear', -- change after ClearAttributes if you're changing the command.
    Examine = 'examine', -- change after Examine if you're changing the command.
    OpenAttributes = 'attributes', -- change after OpenAttributes if you're changing the command.
}

Config.Strings = {
    -- Client Side Locales (ox_lib menu)
    title = 'Character Attributes',
    age = 'Age',
    age_desc = 'Enter your character\'s age.',
    height = 'Height',
    height_desc = 'Enter your character\'s height.',
    description = 'Description',
    description_desc = 'Enter a description about your character.',
    -- Server Side Locales
    examine = '[Attributes]: Usage: /examine [id]',
    player_not_found = '[Attributes]: Player not found.',
    no_attributes = '[Attributes]: No attributes found for specified player.',
    no_attributes_warning = "You haven't set your character attributes yet. Use /setattributes to set them.",
    clear_attributes = '[Attributes]: Attributes cleared successfully.',
    no_attributes_clear = '[Attributes]: No attributes found to clear.',

    update_attributes = '[Attributes]: Attributes updated successfully.',
    update_attributes_failed = '[Attributes]: Failed to update attributes.',
    set_attributes = '[Attributes]: Attributes set successfully.',
    set_attributes_failed = '[Attributes]: Failed to set attributes.',
    chatmessageattributes = 'Attributes',
    chatmessageage = 'Age:',
    chatmessageheight = 'Height:',
    chatmessageattributes2 = '[Attributes]',
}

-- ███████████████████████████████████████████████████████████████████████████ --
```

```
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
```

<figure><img src="/files/cSa9GTZM3fGHbSakyouX" alt=""><figcaption></figcaption></figure>

```markup
V 1.0.0
```

* Original Release

```
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
```

<figure><img src="/files/GICvWvhe7QLANSUPz86h" alt=""><figcaption></figcaption></figure>

* [<mark style="color:yellow;">Tebex (purchase)</mark>](https://adminplus.tebex.io/package/6199146)
* [<mark style="color:yellow;">Support (discord)</mark>](https://discord.gg/J2mP9kJJ83)
* [<mark style="color:yellow;">Showcase (video)</mark>](https://www.youtube.com/watch?v=bk4GE4q_5S8)


---

# 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://docs.adminplus.dev/paid-scripts/qb-esx-character-attributes-paid.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.
