Skip to content

Installation ​

Requirements ​

  • FiveM with OneSync, oxmysql, and GTA V with the Diamond Casino & Resort DLC.
  • First-class framework path: es_extended + np_inventory.
  • A supported framework account provider for cash and bank balances. np_payments and np_banking are optional integrations.

Install ​

  1. Place np_casino in the server's resources directory.

  2. Import sql/install.sql, or allow the oxmysql database user to create the casino_* tables at resource startup.

  3. Start dependencies before the resource:

    cfg
    ensure oxmysql
    ensure es_extended
    ensure np_inventory
    ensure np_admin
    ensure np_payments # optional
    ensure np_banking # optional
    ensure np_npchandler # optional
    ensure np_prophandler # optional
    ensure np_phone # optional
    ensure np_casino
  4. Set a private np_casino_secret convar to at least 32 high-entropy characters. Keep it out of public configuration and source control. A weaker development fallback is used with a console warning if it is missing.

  5. Review shared/config.lua and set the cashier/table points for the actual casino interior or MLO. casino_audit reports model presence only; it cannot validate animation clips, seat offsets, the wheel or Scaleform calls.

  6. Verify the native assets and interactions on a test server before enabling player use.

np_inventory registers the casino_chips item at runtime. ESX/QB fallback item definitions are in sql/items_esx.sql.

Player commands ​

  • /casino or F7 opens the menu.
  • Press E at a configured game table or cashier.
  • /casino_exclude [days] opts out for the requested number of days (1–365). Existing chips can still be redeemed.

Admin permissions ​

  • np_casino.admin: /casino_admin and full casino audit access.
  • np_casino.audit: /casino_audit only.

The resource uses np_admin; it does not use ACE permissions.