⚙️Config

Dadi Rewards - Configuration Guide

Welcome to the configuration guide for Dadi Rewards script. Below you will find a detailed explanation of each configuration option available in the script, allowing you to customize the script to better fit your server's needs.

DADI REWARDS CONFIG
shared.lua
 ██████╗░░█████╗░██████╗░██╗  ░█████╗░░█████╗░███╗░░██╗███████╗██╗░██████╗░
 ██╔══██╗██╔══██╗██╔══██╗██║  ██╔══██╗██╔══██╗████╗░██║██╔════╝██║██╔════╝░
 ██║░░██║███████║██║░░██║██║  ██║░░╚═╝██║░░██║██╔██╗██║█████╗░░██║██║░░██╗░
 ██║░░██║██╔══██║██║░░██║██║  ██║░░██╗██║░░██║██║╚████║██╔══╝░░██║██║░░╚██╗
 ██████╔╝██║░░██║██████╔╝██║  ╚█████╔╝╚█████╔╝██║░╚███║██║░░░░░██║╚██████╔╝
 ╚═════╝░╚═╝░░╚═╝╚═════╝░╚═╝  ░╚════╝░░╚════╝░╚═╝░░╚══╝╚═╝░░░░░╚═╝░╚═════╝░

Dadi = Dadi or {}

Dadi.Marker = 21
Dadi.Coord = vec3(-260.51,-973.94,31.22)

-- HERE YOU PLACE THE LIST OF CARS THAT YOU COULD GET (REMEMBER THAT FROM ALL OF THEM YOU WILL ONLY GET 1 AT RANDOM)
Dadi.ModelName    = { 
	"faggio",
	"blista",
}

-- FOR LOGS
Dadi.ServerName = "DADI"  

-- SETUP OF THE INITIAL PLAYER BONUS
Dadi.EnableCashBonus = true
Dadi.AmountCashBonus = 1000

Dadi.EnableBankBonus = true
Dadi.AmountBankBonus = 250000

Dadi.EnableBlackMoneyBonus = false
Dadi.AmuontBlackMoneyBonus = 30000

Dadi.EnableCoinsCustom = false
Dadi.CustomCoinsName = "dadicoins"
Dadi.AmountCoinsCustom = 20

--VEHICLE PLATE INFORMATION
Dadi.PlateLetters  = 2
Dadi.PlateNumbers  = 5
Dadi.PlateUseSpace = true

-- VEHICLE SPAWN INFORMATION
Dadi.TypeofVehicle = "car" -- car, bike, truck, boat, plane, helicopter
Dadi.TypeofGarage = "A" -- A, 1, Legion, etc

-- TEXT MESSAGE
Dadi.BonusClaimed = "You have already claimed your gift, welcome to "..Dadi.ServerName.."!"
Dadi.MoneyAdded = "You received $"..Dadi.AmountCashBonus.." of clean money as a welcome bonus"
Dadi.BankAdded = "You received $" .. Dadi.AmountBankBonus .. " in the bank as a welcome bonus"
Dadi.BlackAdded = "You received $" .. Dadi.AmuontBlackMoneyBonus .. " of dirty money as a welcome bonus"
Dadi.CoinsAdded = "You received $" .. Dadi.AmountCoinsCustom .. " of vip coins as a welcome bonus"
Dadi.VehicleAdded = "You have received your car, pick it up at the nearest garage!"
Dadi.Label = "✨ WELCOME TO ~*~"..Dadi.ServerName.." ✨<br>Claim your welcome bonus here ~w~<br>~y~[E] GET"

General Configuration

  • Dadi.Marker: Sets a numerical value that might represent a specific location or event ID where rewards can be claimed.

  • Dadi.Coord: Establishes the coordinates (vec3) for a location in the game world, where players can go to claim their rewards.

  • Dadi.ModelName: An array containing strings of model names (e.g., vehicles) that a player can receive as a reward. The system will randomly select one for the player.

  • Dadi.ServerName: A string to define the name of the server or the game environment. It's used in messages to provide a personalized experience.

  • Dadi.EnableCashBonus, Dadi.AmountCashBonus, Dadi.EnableBankBonus, Dadi.AmountBankBonus, Dadi.EnableBlackMoneyBonus, Dadi.AmuontBlackMoneyBonus, Dadi.EnableCoinsCustom, Dadi.CustomCoinsName, Dadi.AmountCoinsCustom: These settings control various types of bonuses a player can receive, including cash, bank credits, "black money" (illegally obtained money), or custom server-specific currency. Each type of bonus has an "enable" flag that turns it on or off and an amount to specify how much of the bonus is granted.

  • Dadi.PlateLetters, Dadi.PlateNumbers, Dadi.PlateUseSpace: Configuration for generating vehicle license plates when a player receives a car reward. It defines how many letters and numbers the plate should have and whether a space is used.

  • Dadi.TypeofVehicle, Dadi.TypeofGarage: Specifies the type of vehicle players can receive (such as cars, bikes, trucks, etc.) and the type/category of garage (identified by characters or names) where the vehicle can be collected.

  • Text messages (Dadi.BonusClaimed, Dadi.MoneyAdded, Dadi.BankAdded, Dadi.BlackAdded, Dadi.CoinsAdded, Dadi.VehicleAdded, Dadi.Label): Customizable strings that are displayed to the player upon claiming their rewards or receiving notifications about what they've received. These help in providing feedback and guiding players through the reward claiming process.

Overall, this block of code allows for the customization and implementation of a rewards system within your FiveM server, enhancing the player experience by offering tangible incentives.

Last updated