24/7 Robbery [FREE] [ESX/QBCore]

Lation always comes with them clean scripts

works beautifully! only problem i’m having is registers and safe rewards only give me one item instead of the number i put in config any ideas how to fix this?

Hey man, sorry to hear! Sounds like it could likely just be a misconfiguration or bad resource start order, etc. If you need more direct help you’re free to hop in the Discord and I can help you out further!

Thanks man! <3

Glad to hear! That’s an odd one. I’d have to know a bit more - framework, inventory system, etc. Feel free to hop in the Discord and I could do my best to help you out further.

Update v1.2.0

Added:

  • Refactored entire code base
  • New & improved animations
  • Discord webhook logs
  • Simple toggle to change ox_lib progress UI
  • All animations now easily editable via config
  • Metadata toggle for QB users
  • VersionCheck toggle for update prints
  • Strings.lua file

Notes : Many changes and improvements have been completed and a much needed overhaul / refactoring. In this latest release some things are now very easily changed. For example for QB users, use Config.Metadata to reward an item such as markedbills with metadata or not by setting it to false. You can now also change the ox_lib progress UI to ‘circle’ or ‘bar’ simply in the config. Of course, the highly requested Discord logging ability was also added! Animations have all been improved. Strings are now in a dedicated file & more - I hope you enjoy!

Update Now

How do i make the register and safe give you money on qb-core instead of dirty

Hey! All you need to do is open the config.lua file and find the following lines:

Config.RegisterRewardItem = 'black_money' -- The item that is rewarded upon a successful register robbery

and

Config.SafeRewardItem = 'black_money' -- The item that is rewarded upon a successful safe robbery

As the name suggests (and the comments that are there to explain what they do by default), those are the items that are rewarded when you either rob the register or the safe. I see you mentioned you’re on QBCore, which likely means you’ll want to assign these values to ‘markedbills’

Hope that answers your question!

thanks

[ script:qb-inventory] SCRIPT ERROR: @qb-inventory/server/main.lua:150: attempt to index a nil value (local ‘itemInfo’)
[ script:qb-inventory] > AddItem (@lation_247robbery/bridge/server.lua:62)
[ script:qb-inventory] > handler (@lation_247robbery/server/main.lua:103)
[ script:qb-core] SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:479: attempt to concatenate a nil value (local ‘err’)
[ script:qb-core] > AddItem (@lation_247robbery/bridge/server.lua:62)
[ script:qb-core] > handler (@lation_247robbery/server/main.lua:103)
[script:lation_247rob] SCRIPT ERROR: error object is not a string
[ script:qb-inventory] SCRIPT ERROR: @qb-inventory/server/main.lua:150: attempt to index a nil value (local ‘itemInfo’)
[ script:qb-inventory] > AddItem (@lation_247robbery/bridge/server.lua:62)
[ script:qb-inventory] > handler (@lation_247robbery/server/main.lua:103)
[ script:qb-core] SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:479: attempt to concatenate a nil value (local ‘err’)
[ script:qb-core] > AddItem (@lation_247robbery/bridge/server.lua:62)
[ script:qb-core] > handler (@lation_247robbery/server/main.lua:103)
[script:lation_247rob] SCRIPT ERROR: error object is not a string

Hey man, typically, the best way to ask for help is providing a bit more information instead of just dumping a wall of text and expecting me to sift through this, try to figure out all the details, what your doing, how it happened, how to replicate etc. So, if you could please provide some more information that would be extremely helpful and would allow me to actually help you instead of wasting both our time explaining how to ask for help lol

This happened after hacking the computer and opening the safe.
I think after looking at it, it might possibly be trying to reward an item that doesnt exist in the qbcore items.lua.

Gotcha! Yeah that could very well be possible. Make sure to double check the config!

yeah that fixed it, changed from black_money to markedbills and now the script works
sorry for dumping a wall of text like that

Awesome glad to hear! And all good of course <3

1 Like

Update v1.3.0

Changed:

  • Refactored much of the codebase
  • Performed general optimizations

Added:

  • Default notify support for ox_lib, ESX, QBCore, okok & sd-notify
  • Option to increase reward payout based on number of police in city
  • Ability to easily create as many questions you want if using questionnaire
  • Ability to change reward item(s) to whatever you want (cash, items, etc)
  • Minigame() function to easily change skillcheck minigame
  • Server sided logs file to secure logging events

:white_check_mark: Download Now