[Release] [ESX] loffe_robbery

Read the whole post brother! This info is already shared here.

EDIT: check post #27-28

anyone get this to pay directly into the player’s account who is robbing the store? I removed the bag drop but my edits just pay everyone on the server now :unamused:

Loffee can you make it Dirty Money instead of Clean money

is their a way in the code to have it notify the police and say banksecurity

i see RegisterNetEvent(‘loffe_robbery:msgPolice’, ‘loffe_robbery:msgbanksecurity’)
will that work

The shopkeeper just disappears if im aiming him??

are you serious ? you just need change 2words…

Old script… I had no idea about syncing stuff between players when I made this script. It sucks. You shouldn’t use it. I will maybe make an updated, working version in the future.

Hi,
I have a problem, everytime a player rob, everyone goes near the ped take cash too, anyone have a correction?

@Mike_Favre-bulle

I might update this script in a couple of months, currently some stuff with school etc.

1 Like

How can i increase time of roberry? could u tell me ^^?

would like to know this too

[HELP]
Every time i add a store i get another one of these popping up when i restart the script, and the first 2 are from the default config, am i doing something wrong or is this okay?

Image:

Config.Shops = {
   
    {coords = vector3(24.03, -1345.63, 29.5-0.98), heading = 266.0, money = {500, 3000}, cops = 0, blip = true, name = '7/11', cooldown = {hour = 0, minute = 30, second = 0}, robbed = false, id = false},
	
    {coords = vector3(-705.73, -914.91, 19.22-0.98), heading = 91.0, money = {500, 3000}, cops = 0, blip = true, name = '7/11', cooldown = {hour = 0, minute = 30, second = 0}, robbed = false, id = false},
	
	{coords = vector3(1134.50, -983.22, 46.42-0.98), heading = 277.63, money = {500, 3000}, cops = 0, blip = false, name = '7/11', cooldown = {hour = 0, minute = 30, second = 0}, robbed = false, id = false},
	
	{coords = vector3(1165.10, -324.14, 69.21-0.98), heading = 97.68, money = {500, 3000}, cops = 0, blip = false, name = '7/11', cooldown = {hour = 0, minute = 30, second = 0}, robbed = false, id = false},
	
	{coords = vector3(372.93, 328.05, 103.57-0.98), heading = 258.56, money = {500, 3000}, cops = 0, blip = false, name = '7/11', cooldown = {hour = 0, minute = 30, second = 0}, robbed = false, id = false}

}

Also I’ve been looking through the code and can’t seem to find the line that defines cash (trying to change it to dirty money) If someone knows the line/file or how to do it with this script that would be greatly appreciated.

[BREAK]

I have been sitting here trying to find errors in the script so that we won’t run into them on the live server.

I have found an error where this gets spammed at light speed in the F8 menu

Steps To Re-create:

  • Rob the store/kill the clerk
  • Disconnect from the server
  • Reconnect to the server

To stop the spam:

  • Try and restart the script, some times it takes a complete server reset

If you are within the area of the store where it is trying to find the clerk (who is now despawned) it will spam it. I haven’t checked but this probably puts a decent strain on the server.

Alright, I think I know how to fix this but it will require me to pretty much rewrite the script. I think I’m gonna do that and make it standalone as well.

1 Like

can i have the lines of code to steal with knives …? @Loffes

1 Like

uho ?

@Loffes I would like to know how you can add a line of code so when you agro / target onto the store clerk it starts the robbery.

Good evening you just have to put a health check on the ped and if it is dead make a new spawn and the problem is resolved :slight_smile:

Multiple players can rob the same clerk at once and receive triple the amount of cash. currently working on a fix to sync between players, will ask to fork on GitHub this afternoon!

1 Like

I have a problem I can only rob stores with firearms, I have the number 7 which is equivalent to being able to steal with any weapon except my hands