ak4y Development
TEBEXYOUTUBEDISCORD
  • 📖Welcome
  • INFORMATION
    • 🙋Discord Customer Role
    • ❓Tebex Script Integration
    • 🔐Setting Steam Api Key
    • 🔑CFX Auth System
    • 📭Lost Transaction ID
    • 🔓Escrow/Open Source
    • 😟You lack the required entitlement
  • SCRIPTS
    • ak4y-vipSystemv2
      • Manage Categories
      • Config
        • Translate
        • General Settings
        • Special Offer Category
        • Hot Deals Category
        • Buy Coin Category
        • Bundle Category
        • Customize Category
        • House Category
        • Job Category
        • Vehicle Category
        • Item Category
        • Money Category
        • Weapon Category
      • Triggers
      • Admin Commands
    • ak4y-hudv1
      • Build For Open Source
      • Setup Script
      • Config
      • Exports
    • ak4y-football
      • Known Errors
      • Setting Up
      • Config
    • ak4y-caseOpening
      • Config
    • ak4y-battlepass
      • Config
    • ak4y-vipSystem
      • Config
    • ak4y-playtimeshop
      • Config
    • ak4y-blackmarket
      • Config
    • ak4y-dailymissions
      • Config
    • ak4y-advancedFishing
      • Config
    • ak4y-pauseMenu
      • Config
    • ak4y-dailyRewards
      • Config
    • ak4y-jobSelector
      • Config
    • ak4y-advancedHunting
      • Config
    • ak4y-dice
      • Config
    • ak4y-dailyWheel
      • Config
    • ak4y-multicharacter
      • Config
    • ak4y-spawnSelector
      • Config
    • ak4y-kit
      • Config
    • ak4y-treasureHunting
      • Config
    • ak4y-garbageJob
      • Config
    • ak4y-pauseMenuV2
      • Copy of Config
Powered by GitBook
On this page

Was this helpful?

  1. SCRIPTS
  2. ak4y-dice

Config

```lua
AK4Y = {}

AK4Y.Framework = "newEsx" -- esx / newEsx | newEsx = export system | esx = triggerevent system
AK4Y.Mysql = "oxmysql" -- Check fxmanifest.lua when you change it! | ghmattimysql / oxmysql / mysql-async

AK4Y.OpenCommand = "diceMenu"

AK4Y.DiceOptions = {
    { optionId = 1, optionLabel = "1 Round", optionRound = 1 },
    { optionId = 2, optionLabel = "2 Round", optionRound = 2 },
    { optionId = 3, optionLabel = "3 Round", optionRound = 3 },
    { optionId = 4, optionLabel = "4 Round", optionRound = 4 },
    { optionId = 5, optionLabel = "5 Round", optionRound = 5 },
}

AK4Y.Translate = {
    plyWalkAway = "player walked away", 
    noNearby = "There's no one nearby",
    plyNotAvailable = "Player not available for betting",
    noMoneyOneSide = "One side has no money",
    ydntHvMoney = "You have no money to send an invitation",

}

AK4Y.Notify = function(text, typ, where)
    if where == "client" then 
        ESX.ShowNotification(text, typ)
    end
end
```
```lua
AK4Y = {}

AK4Y.Framework = "qb" -- qb / oldqb | qb = export system | oldqb = triggerevent system
AK4Y.Mysql = "oxmysql" -- Check fxmanifest.lua when you change it! | ghmattimysql / oxmysql / mysql-async

AK4Y.OpenCommandMenu = "diceMenu"

AK4Y.DiceOptions = {
    { optionId = 1, optionLabel = "1 Round", optionRound = 1 },
    { optionId = 2, optionLabel = "2 Round", optionRound = 2 },
    { optionId = 3, optionLabel = "3 Round", optionRound = 3 },
    { optionId = 4, optionLabel = "4 Round", optionRound = 4 },
    { optionId = 5, optionLabel = "5 Round", optionRound = 5 },
}

AK4Y.Translate = {
    plyWalkAway = "player walked away", 
    noNearby = "There's no one nearby",
    plyNotAvailable = "Player not available for betting",
    noMoneyOneSide = "One side has no money",
    ydntHvMoney = "You have no money to send an invitation",

}

AK4Y.Notify = function(text, typ, where)
    if where == "client" then 
        QBCore.Functions.Notify(text, typ)
    end
end
```
Previousak4y-diceNextak4y-dailyWheel

Last updated 1 year ago

Was this helpful?