Configuration

A fully documented config.lua for the M Rollin Dice script.

Config = {}

-- Chat message after dice settle (false by default - avoids chat spam complaints)
Config.ChatEnabled = false

-- Per-player UI toggle default (if player has no saved preference yet)
Config.DiceUiDefaultEnabled = true

-- Anti-spam cooldown (server-side)
Config.CooldownMs = 4000

-- Roll/visual timings (ms)
Config.RollMs = 2200
Config.ShowMs = 6500

-- Dice limits
Config.MaxDice = 6
Config.MaxSides = 100

-- Group roll radius limits (in meters)
-- I advise keeping Min at least 10 to avoid excessive network load
-- And Max at most 40 to avoid performance issues on lower-end clients
Config.GroupRadius = {
  Min = 10,
  Max = 40
}

-- Group roll default radius
Config.DefaultGroupRadius = 10

-- UI above head settings (Don't change)
Config.UiHeadBone = 31086  -- SKEL_Head
Config.UiHeadHeight = 0.55 -- how high above head
Config.UiScale = 0.9       -- size multiplier for NUI dice

-- Animation played on the roller (client-side)
Config.RollAnim = {
  Dict = 'anim@mp_player_intcelebrationmale@wank',
  Name = 'wank',
  DurationMs = 1000,
  Flag = 49
}

Last updated