A free player attributes system for setting and viewing details of a character.
- Set a age, height, and description of your character for better interactions.
- Attributes are stored in your database.
- Utilizes Prisma to interact with your database.
- Administrators have the ability to manage attributes via command.
If you download the source code via the green Code
button, you'll need to build the resource. Information on how to do this is provided below. If you prefer not to build it, you can download latest release and drag and drop it into your server. However, any changes made to the built resource will need to be re-built to apply the changes.
- Download and install the LTS version of Node.js.
- Open a command-line terminal (e.g., Terminal, Command Prompt).
- Enter
node --version
to verify the installation. - Run
npm install -g pnpm
to globally install the package manager pnpm. - Download or clone the repository with
git clone https://github.com/arlofonseca/fivem-attributes
. - Execute the queries found in
attributes.sql
in your database. - Install all dependencies with
pnpm i
. - Create a new file named
.env
within the root directory. - Copy the contents of
.env.example
to the newly created.env
file and edit accordingly. - Connect your database with
pnpm pull
to add Prisma models toschema.prisma
. - Generate Prisma client using
pnpm generate
. - Build the resource with
pnpm build
.
Use pnpm watch
to rebuild whenever a file is modified.
- Set your characters age, height, and details.
- Examine another player's age, height, and description.
- Update another player's age, height, and description.
- Deletes attributes for the specified player.