PartnerCodes | Refer
5.00EUR
Script Description
Hey guys! This is my first "public" script for sale on fivem, I apologize if I did not clarify everything or if I forgot to mention something in this small presentation of the script.
With PartnerCodes script, you can create referral codes (one for each player) and everyone can use another player's code, earning rewards for using it. This way you will be able to know which player has called more players to the server, rewarding him if you want to.
Principal Features:
- Everyone can create their own referral code
- Everyone can use another player's code
- When using another player's code, you will be rewarded in cash, just as the owner of the code will be rewarded too
- The script has the option to reset the uses weekly for a new count
All features can be changed if you wish, if you want me to make a customized version, please contact me on discord.
Dependencies:
- Database Manager (MysqlAsync or ghmattimysql...)
- ESX V1.2 or EXM (I could do an adaptation to other framework if you like)
- Cron (not mandatory, optional)
All dependencies can be changed or adapted to the framework/database manager that your server uses. Please, for any changes contact me first on my discord.
High Level of Configuration:
Notification system:
Commands available for use and what are they for:
- /partnercode [name of the code]
This command is used to create a personal reference code, or to change the code if one is already created.
- /mycode
This command is used to check your code and how many times it has been used by other players.
- /usecode [name of the code]
This command is used to make use of someone else's code.
"Mini ShowCase"
Here is a print of what the script is in the most basic way possible (Click Here if it's illegible).

FAQ
Questions or Suggestions?
I bought the script, how do I gain access to the files?
IMPORTANT NOTES:
The script is entirely done by serversided, which prevents dumps of this script. For anti-copy measures, the file server/main.lua will be ip-tracked (but editable) . Resale is completely prohibited. I ask that anyone who wants to change something in the code, come and talk to me beforehand if there is anyproblem. Support will almost be guaranteed when purchasing, however, I commit to helping as much as I can, remember that I have life and I'm not available 24/7, so I'm sorry if I don't respond quickly. Support has no added costs, don't worry.
Any questions or requests for change/adaptation should be addressed to me through the discord (100% free but not guaranteed)
Deep Explanation of how the script works:
With this script, PartnerCodes, infinite reference codes can be created for each player in particular. These codes can be used by other players to support the owner of the code used. If you like, the creation of codes can be disabled in the config.lua, to disable it, only the owners of the server will be able to create codes from the database.
This script can be useful on many servers, mainly for the staffs and also the players to know which player has more supporters and how many people he called to the server. For example, on a server, a kind of event can be held where, until the end of the week, the person who has the most code used gets something special.
Each player can only create one and only one supporter code from a command defined in config.lua (Config.CreateCommandCode). This Code has a maximum number of characters (Config.CodeMaxLength). Each player can also only use one code.
If someone uses a code, that person will receive a cash reward. The owner of this code will also receive a notification, as well as a small cash reward. The amounts of money can be defined once again in the config.lua, or they can be defined particularly for each player in the database.
The script can reset your damage base several times a week. The days of the week on which the server resets the uses can be defined in config.lua. These resets only reset the uses and the number of uses of the code; the codes themselves will continue to exist. This is done so that each week players can use codes. This can also be turned off in config.lua, if you wish.
All messages can be changed in config.lua.
As you can see, the script has a high level of customization and promote players to invite new players to the server.



