Configuration
All settings are in config.lua. Restart the resource after editing it.
Main game options
| Option | Default | Description |
|---|---|---|
Config.Locale | "en" | fr, en, pt-br, pt, ru or de. |
MinBetChips / MaxBetChips | 2 / 10 | Minimum and maximum bet in chips. |
MinBuyInChips / MaxBuyInChips | 2 / 50 | Allowed chip-stack purchase range. |
DefaultBuyInChips | 20 | Preselected buy-in amount. |
BuyInStepChips | 5 | Increment used by the buy-in prompt. |
BetTime | 20000 | Bet phase duration (ms). |
InsuranceTime | 10000 | Insurance phase duration (ms). |
TurnTime | 25000 | Duration of one player turn (ms). |
ShuffleBelow | 20 | Shuffle when fewer cards remain. |
The cash value of a chip is set per table with chipValue (default 1.0).
Default tables
Edit Config.Blackjack.Tables to change, remove or add fixed tables:
{
id = 'blackwater',
labelKey = 'tableBlackwater',
coords = vector3(-813.2971, -1324.2848, 46.89),
heading = 0.29,
theme = 'bla',
dealerModel = 's_m_m_valdealer_01',
dealerVoice = 'AS_TOWNDEALER',
chipValue = 1.0,
blip = true,
}id must remain unique. The included tables are Blackwater, Rhodes and Van Horn.
HUD integration
Set HudIntegration.Enabled to true and use callbacks for the most universal integration:
HudIntegration = {
Enabled = true,
OnEnter = function()
exports['your_hud']:SetVisible(false)
end,
OnLeave = function()
exports['your_hud']:SetVisible(true)
end,
}You may alternatively fill the provided Exports or Events fields. Other client resources can react to lo_blackjack:client:playingChanged or call exports['lo_blackjack']:IsPlayingBlackjack().
Administrator tables
/createblackjack creates a persistent table; /blackjacktables opens the management menu. Configure both command names and the access rule in AdminTables:
AdminTables = {
Commands = { create = 'createblackjack', manage = 'blackjacktables' },
RequiredGroup = 'admin',
MaxTables = 100,
MinSpacing = 3.0,
MaxPlacementDistance = 30.0,
}Grant the default ACE permission if required by your setup:
add_ace group.admin lo_blackjack.admin allowThe integrated placement gizmo needs no additional resource. Use its on-screen controls to move or rotate the complete table set, snap it to the ground, confirm or cancel.