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_paymentsandnp_bankingare optional integrations.
Install ​
-
Place
np_casinoin the server's resources directory. -
Import
sql/install.sql, or allow theoxmysqldatabase user to create thecasino_*tables at resource startup. -
Start dependencies before the resource:
cfgensure 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 -
Set a private
np_casino_secretconvar 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. -
Review
shared/config.luaand set the cashier/table points for the actual casino interior or MLO.casino_auditreports model presence only; it cannot validate animation clips, seat offsets, the wheel or Scaleform calls. -
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 ​
/casinoor 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_adminand full casino audit access.np_casino.audit:/casino_auditonly.
The resource uses np_admin; it does not use ACE permissions.