Updated and tested. Please reinstall items and script. Cash item name added to config and draw text for cash count in money bag .
You just made my whole day. It’s working 100%. You are the best of the best. Is the first time someone who I bought a script from actually replied and took their time. It means a lot for me. If you can share your discord or have any place for review I 3000000% will give you one. Even if donation link. I love ittt
script:ttp-dice] SCRIPT ERROR: ?:-1: attempt to index a nil value (field 'ESX') need help with this error
[RELEASE] TTP-DICE v3.0 | NPC Games, Robberies & New UI | ESX / QB-Core Author: TTPDev Version: 3.0.0 Frameworks: ESX & QB-Core Dependencies: ox_lib, ox_inventory / qb-inventory, ox_target / qb-target
Overview TTP-DICE brings realistic dice rolling, gambling, and money drop gameplay into your FiveM server. With version 3.0, the streets feel more alive than ever. Challenge your friends to a game, or try your luck solo against our new interactive NPCs. Lose your money? Take it back by force with the brand-new robbery system—just be prepared for the NPCs to fight back!
What’s New in 3.0.0
Framework Improvements: Under-the-hood optimization for better performance and smoother syncing across both ESX and QB-Core.
New UI Options: Total control over your display. Choose between our Classic UI, DrawText, or run both simultaneously based on your server’s aesthetic.
NPC Dice Games (Solo Play): Nobody around? No problem. Players can now initiate and play dice games directly with NPCs.
Dice Game Robberies: High stakes just got higher. Players can now rob ongoing dice games to steal the pot.
Dynamic NPC Reactions: NPCs won’t just stand there when robbed. Depending on the scenario, they will react by getting scared and fleeing, or becoming aggressive.
Armed NPCs: Think twice before pulling a gun on a dice game. Aggressive NPCs might just pull out a weapon and defend their cash.
Returning Features (from v2.0)
Money Bag Feature: Drop and pick up money with fully synced props.
ox_lib Integration: Clean UI menus, smoother menus, and crisp notifications.
Immersive Animations: Fluid dice roll and item pickup animations.
Supported Frameworks
QB-Core Version Uses qb-inventory / ox_inventory for item management. Supports qb-target / ox_target for interaction with dice, NPCs, and money bags. Fully integrated with ox_lib for notifications and menus.
ESX Version Native ESX support, works out of the box. ox_lib required for menus and notifications. Fully synced props and simplified inventory compatibility.
Dependencies Required: ox_lib

how do you play with the npc is it a command
also can i use different money props
Use target to 3rd eye npc and select the game. You have to have the dice item to play. You can change the money prop in config
Config.Props = {
main = {
model = \`prop_cash_pile_01\`,
}
-- A secondary prop
-- secondary = {
-- model = \`prop_npc_phone\`,
-- z_offset = 0.02, -- Small height adjustment from the ground
-- rotation = vector3(0.0, 0.0, 13.5)
-- }
}
## [3.0.2] - Updates
- Added 3 dice color variations (blue, green and white).
- Added a dispatch event to the NPC dice game robbery. Preconfigured for cd_dispatch, cd_dispatch3d, qs-dispatch, ps-dispatch and tk_dispatch. Dispatch.lua is open so you can add any custom dispatch needed.
- Updated the NPC dice game to utilize the new color variations.
- Improved compatibility so both big and normal dice now work out-of-the-box without script modifications.
i changed the prop still not working
just tested and moneybag prop changes for me. open a ticket and send your config