SIMPLE NAMECHANGE
This script allows players on a FiveM server to change their name (first name and last name). It includes various features, such as displaying a HUD (Heads-Up Display) for name changes, checking for blacklist words, and deducting an amount for the name change. All settings and customizations can be made in the config.lua file.
FEATURES
- Blip and Marker on the Map:
- A blip and a marker are displayed at a specific position on the map.
- The marker indicates where players can interact to change their name.
- Interaction with the Marker:
- When a player enters the marker and presses the
Ekey, a HUD is opened. - In the HUD, the player can enter their new first and last names.
- Name Change HUD:
- The HUD displays the player’s current name.
- The player can enter new first and last names.
- The cost for the name change is displayed and can be adjusted in the
config.lua.
- Validation of the New Name:
- The script checks if the new names contain any blacklist words.
- If the name is invalid, a notification is displayed.
- Updating the Name and Deducting the Amount:
- If the name is valid and the player has enough money, the name is updated in the database.
- The specified amount is deducted from the player’s account.
- Successful and unsuccessful name changes are notified to the player.
- Enabling/Disabling the Blip:
- The blip on the map can be enabled or disabled via the
config.lua.
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | 100+ |
| Requirements | N/A |
| Support | Yes |
