{"id":174463,"date":"2024-11-12T13:04:42","date_gmt":"2024-11-12T12:04:42","guid":{"rendered":"https:\/\/fivem-mods.net\/?p=174463"},"modified":"2026-06-22T20:42:17","modified_gmt":"2026-06-22T18:42:17","slug":"comment-creer-des-niveaux-de-dons-sur-discord","status":"publish","type":"post","link":"https:\/\/fivemx.com\/fr\/how-to-create-discord-donation-tiers\/","title":{"rendered":"Comment cr\u00e9er des niveaux de dons sur Discord"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Hey all! Does your server offer donation tiers? If not, you should think about adding them.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Creating donation tiers with Discord and FiveM integration is an excellent way to reward supporters while automating in-game perks. This tutorial will guide you step-by-step on how to set up donation tiers using the <a href=\"https:\/\/github.com\/JaredScar\/DiscordDonatorPerks\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/github.com\/JaredScar\/DiscordDonatorPerks\" rel=\"noreferrer noopener\"><strong>DiscordDonatorPerks<\/strong> script<\/a>. This solution seamlessly integrates Discord roles with in-game rewards, simplifying management and improving user experience.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What You&#8217;ll Learn<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Setting up the required dependencies for <a href=\"https:\/\/docs.badger.store\/fivem-discord-scripts\/discorddonatorperks\" data-type=\"link\" data-id=\"https:\/\/docs.badger.store\/fivem-discord-scripts\/discorddonatorperks\" target=\"_blank\" rel=\"noopener\">DiscordDonatorPerks<\/a>.<\/li>\n\n\n\n<li>Configuring donation tiers and rewards.<\/li>\n\n\n\n<li>Automating the perks assignment process.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Requirements<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before you begin, ensure you have the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/fivemx.com\/converting-fivem-scripts\/\" title=\"Converting FiveM Scripts \u2013 ESX, QBCore, QBOX (Framework Guide)\" data-wpil-monitor-id=\"1663\">FiveM Server with ESX\/QBCore framework<\/a>.<\/li>\n\n\n\n<li><strong>Essentialmode Database<\/strong> (or equivalent).<\/li>\n\n\n\n<li><strong>Dependencies<\/strong>:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/logan-mcgee\/discord_perms\" target=\"_blank\" rel=\"noopener\">discord_perms<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/brouznouf\/fivem-mysql-async\" target=\"_blank\" rel=\"noopener\">MySQL Async<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 1: Installation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Download and Extract <a href=\"https:\/\/codeload.github.com\/JaredScar\/DiscordDonatorPerks\/zip\/refs\/heads\/master\" id=\"https:\/\/github.com\/JaredScar\/DiscordDonatorPerks\/archive\/refs\/heads\/master.zip\" target=\"_blank\" rel=\"noopener\">DiscordDonatorPerks<\/a><\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/codeload.github.com\/JaredScar\/DiscordDonatorPerks\/zip\/refs\/heads\/master\" id=\"https:\/\/github.com\/JaredScar\/DiscordDonatorPerks\/archive\/refs\/heads\/master.zip\" target=\"_blank\" rel=\"noopener\">Download the script here (you&#8217;ll need it)<\/a><\/li>\n\n\n\n<li>Extract the files into your FiveM server&#8217;s <code>resources<\/code> folder.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Set Up the Database<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the <code>insert.sql<\/code> file included in the script.<\/li>\n\n\n\n<li>Execute the following SQL code in your database (use phpMyAdmin or any MySQL client): <code>CREATE TABLE IF NOT EXISTS Donator_Data ( id INTEGER(11) AUTO_INCREMENT PRIMARY KEY, identifier VARCHAR(50), playerName VARCHAR(50), dateReceiveNext INTEGER(64), acceptedPerkID INTEGER(11), rankPackage VARCHAR(50) );<\/code><\/li>\n\n\n\n<li>Verify that the <code>Donator_Data<\/code> table is now in your database.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Installing discord_perms [Tutorial 01]\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/sjbFzkII2T0?feature=oembed\" loading=\"lazy\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Installing My Discord Scripts [Tutorial #02]\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/xDfyGcqX5sA?feature=oembed\" loading=\"lazy\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 2: Configure the Script<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Edit the Configuration File<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the configuration file for <strong>DiscordDonatorPerks<\/strong>.<\/li>\n\n\n\n<li>Define your roles and perks in the <code>roleList<\/code> table. Example:luaCode kopieren<code>roleList = { {\"Bronze-Tier\", 1, {\"$1,000,000 voucher\", {'Money', 1000000}}}, -- Bronze Tier {\"Silver-Tier\", 1, {\"$5,000,000 voucher\", {'Money', 5000000}}}, {\"Gold-Tier\", 1, {\"$15,000,000 voucher\", {'Money', 15000000}}, {\"Invitation to Mafia [Gang]\", {'Job', 'mafia', 0}} } }<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Customize Offers<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Money Rewards<\/strong>: <code>'Money', &lt;amount&gt;<\/code>\n<ul class=\"wp-block-list\">\n<li>Example: <code>{'Money', 1000000}<\/code> gives $1,000,000 in-game.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Job Rewards<\/strong>: <code>'Job', '&lt;jobname&gt;', &lt;grade&gt;<\/code>\n<ul class=\"wp-block-list\">\n<li>Example: <code>{'Job', 'mafia', 0}<\/code> invites the player to the Mafia job at grade 0.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 3: Update Role IDs<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the <code>1<\/code> placeholders in the <code>roleList<\/code> with the actual Discord role IDs:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open Discord Developer Mode (<code>Settings &gt; Advanced &gt; Developer Mode<\/code>).<\/li>\n\n\n\n<li>Right-click the role in your Discord server and select <strong>Copy ID<\/strong>.<\/li>\n\n\n\n<li>Update your script with the correct role IDs.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 4: Start the Resources<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following lines to your <code>server.cfg<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>start discord_perms<br>start mysql-async<br>start DiscordDonatorPerks<br><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Restart your FiveM server to apply the changes.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 5: Testing and Debugging<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Assign the respective roles to a test Discord user.<\/li>\n\n\n\n<li>Have the user join the server and check if their perks are applied.<\/li>\n\n\n\n<li>Use the in-game prompts to accept or deny rewards.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Best Practices<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Regular Updates<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Keep your scripts updated by checking the official documentation:<br><a href=\"https:\/\/docs.badger.store\/fivem-discord-scripts\/discorddonatorperks\" target=\"_blank\" rel=\"noopener\">Badger Docs &#8211; DiscordDonatorPerks<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Inform Your Players<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clearly communicate the perks associated with each donation tier.<\/li>\n\n\n\n<li>Use Discord announcements and a dedicated page on your server&#8217;s website.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Monitor the Database<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Periodically review the <code>Donator_Data<\/code> table to ensure proper functionality.<\/li>\n\n\n\n<li>Use this data to analyze and optimize donation campaigns.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">By setting up DiscordDonatorPerks, you can automate in-game rewards for your supporters, improve player satisfaction, and reduce staff workload. With a well-structured donation tier system, you\u2019ll not only support your server&#8217;s costs but also create a loyal and engaged community.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-fivemx wp-block-embed-fivemx\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"bvLPa5k58D\"><a href=\"https:\/\/fivemx.com\/fivem-monetization-tutorial\/\">How To Earn Money using FiveM in 2025<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cHow To Earn Money using FiveM in 2025\u201d \u2014 FiveMX\" src=\"https:\/\/fivemx.com\/fivem-monetization-tutorial\/embed\/#?secret=Yte0ZUtR1q#?secret=bvLPa5k58D\" data-secret=\"bvLPa5k58D\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Hey all! Does your server offer donation tiers? If not, you should think about adding them. Creating donation tiers with Discord and FiveM integration is an excellent way to reward supporters while automating in-game perks. This tutorial will guide you step-by-step on how to set up donation tiers using the DiscordDonatorPerks script. This solution seamlessly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":174464,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2877,2885,2888,1899],"tags":[],"class_list":["post-174463","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-free-fivem-job-scripts","category-discord-guides","category-monetizing-servers","category-tutorials"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/posts\/174463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/comments?post=174463"}],"version-history":[{"count":1,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/posts\/174463\/revisions"}],"predecessor-version":[{"id":207118,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/posts\/174463\/revisions\/207118"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media\/174464"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media?parent=174463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/categories?post=174463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/tags?post=174463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}