[Release] My version of es_robberies [updated]

I’m trying to do this until 2 hours but it’s difficult (i use cops system) :confused:

my server found a bug, sometimes when a bank is robbed it glitches out and gives the player 35-36mil. any idea why?

Does anyone know the best way to randomize the payouts? I messed around with Math.Random() but it also gave a different random amount in the chat notification to say how much you stole.

reward = math.random(Your minimum,your maximum),

Yes, but the notification to say how much you earned is different than what goes into your wallet.

You have to print out the value of the variable. e.g. if your variable has the name reward (like mentioned above) print and use it for the addMoney call.

1 Like

the way i done mine to stop the numbers not matching is commenting out the chat notification.
server.lua https://gyazo.com/748e19965a1883a361c3ed04aef6a281
client.lua https://gyazo.com/7cc9e77961420f80c00fa7355f9c7177

Here’s the problem i have. The cooldown is set to 1800seconds (30 minutes) https://gyazo.com/ee2ca8037760dae05aabb471894b04a5 the countdown in game shows it 1500seconds (25 minutes) https://gyazo.com/9b2a351ec99b6f3d62ab258a44e93a49
but i can rob it again after 5 minutes. How or why is this happening?

i know this seems fairly obvious , but you should still add that this has dependency to essentialmode in your main post and maybe link to it. BUT is there any way for this to work without it , i like many others are straying away from it.

does the cooldown work?

Also, anyone have a way to make a check for cops? Basically, to make it so X cops have to be online in order to rob.

3 Likes

possibly to make a check to ensure you have a weapon before you rob and X amounts of cops are on?

I would also like to see it to where a cop must be on before there is a robbery. Not sure how possible it would bit but it would be better so people couldn’t come on and just rack up money when there are no cops to stop it.

We are currently running the [Release] My version of es_robberies [updated] and also the [Release] TruckerJob v0.3 [UPDATE 29th January]

We have banking set up and money, the paycheck every 2 minutes works and updates the money in the database, also bank transfers work, and fines from cops. But these two jobs dont seem to actually update your money, they show the “+30000” animation and text but the money is never actually given to you. We haven’t changed either of those scripts. Any advice would be wonderful

Any way to make it so people can not rob a bank/store in a split session? This is becoming an issue as people are learning how to session themselves on purpose.

everything working except no police appears, no wanted level

So this is supposed to be for rp servers?

can someone edit so npc police show up, like wanted level 4.

i get wanted lvl 4 when using this …

why everything never works as it should for me -_-

https://gyazo.com/6b18138736473fcfbe5788029438d263

After timer i recive 0 money, why?

i Love you xDD, finally something that works at it should