[Release] [ESX] loffe_burglary

I think i was a cop let me try again today and i will give you feedback.

Do you know if fixing the lock is supposed to reset the loot tables? People are saying that sometimes they go into a house and the loot is still empty even though the lock was fixed by an officer. Any help in understanding how its supposed to reset would be great.

No, only the lock gets fixed

2 Likes

Thanks for the reply. My only suggestion that would make this script perfect is a way to reset the loot tables without restarting the service. I’m new to fivem coding but I’ve been trying without success.

Still …such a fun mod that has added a lot good RP to our server.

I don’t understand why you would want that but I can make it for you

1 Like

You could? That would be awesome! Because right now one person robs the house and the loot is empty in that house until I reset server or resource. This way cops can fix the door and reset the loot so people can do the burglary again.

1 Like

@Loffes , Police do get the call when doing a burglary, but they can’t set GPS point to the location? Im using esx_phone3.

Where in the script would you go about and put this? Curious

Well loffe has already written the esx_phone statement in; pretty simple to work out from there with a quick CTRL+F.

so you just change the “esx_phone:send” to “gcphone:send” ? :slight_smile:

No, thats where the police alert triggers currently, so you can insert it there.

You’ll need to understand how to call a function. In this case with PoliceRobberyAlert()

Lovely script , im just wondering if its possible to dont get any weapons from peds when when you kill them

You need to do something like this: [Release] Delete Weapon Drops from NPC

1 Like

Got that script enabled. No other NPCs drop weapons yet the ones from this script do.

Also, anyone got code for GCPhone?

Somehow when trying this out, instead of 4 npc’s spawning, 25 npc are spawning.
I have no idea why, had to disable npc spawning for now.

An issue with this code is, if the cops don’t repair the door, people can just walk in, rob everything, then sell, over and over.

How is that a problem? The loot doesnt reset

No, I’m saying even if the house is looted, people can return to the house and loot it again. Not sure if this is triggered by relogging or leaving the area

No, google translate should do the job tho

Dear , Can you please tell me why i get this error ?

i change too meany esx_addons_gcphone resources but still this error …