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.
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.
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.
ensure adminplus-attributes
Feel free to check the shared folder to be able to enable/disable some of the options the script provides.
-- ███████████████████████████████████████████████████████████████████████████ --
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]',
}
-- ███████████████████████████████████████████████████████████████████████████ --