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
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
Could you possibly in future add possibility to hack straight computer without robbing register?
Hey man, I will keep it in mind, but I’m not sure! It was designed the way it is to essentially provide ample time for a police response and making the store robbery a bit longer in general as opposed to a simple grab & go. Going right to the computer and ultimately directly the safe will significantly impact that idea. However, if you have the knowledge you can easily remove the register requirement yourself!
ur script is great but i have question , all store have own cooldown ? or if player rob one store all the store will count the cooldown ( because i had a test to rob one time , all store has count cooldown ) i mean cooldown sync for all player ?
The cool down is global, meaning once the cool down is started at one store it’s for all stores. This is done intentionally to prevent chain robbing, etc. You can always rewrite it to have it work the way you want!
v1.4.0 Update
Added:
- Added native QBox support
- Added support for FiveManage & Fivemerr
- Added support for 6 more dispatch systems
- Added option to use QBCore progress bar
Fixed:
- Any known exploit(s)
Changed:
- Refactored bridge layer
- Partial config.lua refactor
- Completely rewrote backend (mostly server-side)
- Reduced & removed unnecessary client code
- Vastly improved general event security
- Performed general optimizations where applicable
- Updated cooldowns to be per-player, no longer global
hey there is a problem that when i start a robbery if there is anyone with me also they can start robbing untill i finish the rob
is there any way to fix this problem like only one person can rob casier or valut ??