[ESX] Attributes System

Roleplay Attributes System: Enhance Character Interactions with Dice Rolls and Customizable Attributes

This FiveM script introduces an attributes system that enhances roleplay interactions by incorporating character attributes. Players can allocate points to various attributes, such as Strength, Dexterity, Constitution, Intelligence, Perception, and Charisma (fully configurable) . These attributes influence the outcome of roleplay actions based on dice rolls.

Features:

  • Configurability: The script is highly customizable, allowing server administrators to adjust various parameters, including attribute labels, commands, emojis, description and more.

  • Command Integration: Players can use commands to roll dice for specific attributes, triggering events that simulate character actions.

  • Admin Commands: Administrators have access to commands for adding or resetting attribute points, providing flexibility in managing player progression.

  • Dice Roll Mechanism: The script implements a dice roll system with configurable success and failure probabilities at different attribute levels, adding an element of chance to character actions.

  • User Interface: A user-friendly interface displays available attribute points, allowing players to allocate them for character improvement.

  • Chat Integration: Dice roll outcomes are broadcasted in the chat with optional emojis, enhancing the immersive experience for all players.

Notes:

The script ensures data persistence by storing player attributes in a database table. Server administrators can customize the attributes, dice roll probabilities, and other aspects to align with the server’s roleplay theme.

Showcase: ES / EN

Buy :shopping_cart: : tebex store

Code is accessible Config, Locales, custom chat, html
Subscription-based No
Lines (approximately) ~1000
Requirements ESX, Oxmysql
Support Yes
1 Like

Does this script have any other functionality except giving&saving attribute points?

Can it be utilized in other scripts with exports or sum?

Hi! First of all, thank you for your comment.

Yes, this system works as an RPG. This means that you can assign points as you said, and it will impact the different attribute rolls you do whenever you are playing. For example, if you have a lot of points in DEXTERITY, then there are higher chances for you to roll a high number and as a result you will be able to pull off whatever you are trying to do.

As for the second question yes, there is a server callback implemented for the script to be used alongside or even integrated with another script. For example, in a specific heist, you could associate a specific attribute (e.g. Perception) to establish how much items the player will receive.

I hope I have solved your questions. The script has plenty of possibilities attached to it, so it is hard to try and explain all of it or give specific examples, since the goal is to give you total creative control to implement it as you please.

1 Like