[Release] [ESX] Drill Item + Bank Rob Edit

I have no idea sorry man :frowning:

It works like a charm on my server tho.

when i have put in the drill esx it works but when i do the holdupbank in the esx file and esx_holdupbank in the server.cfg, and i rs the server it says couldnt load esx_holdupbank.

our holdupbank and drill item resource is bouth in a folder called [essentials]. Could that be the issue then?

(the resource should currently be installed but not started as of the issue)

Find the amazing problem that was there from download…

Gonna fix the problem now sorry!

Edit: Fixed.

1 Like

Animation doesn’t end when bank is robbed. Would be possible to add something to stop animation (and better, be able to stop forcefully during process)?

Also, option to NPC cops be alerted as well would be awesome :slight_smile:

Update

If you want to add the drill to be buyable from a gang add this in server.lua. Remember to replace esx_cartel, society_cartel with proper job names etc.

RegisterServerEvent('esx_cartel:buyItem')
AddEventHandler('esx_cartel:buyItem', function()
  	TriggerEvent('esx_addonaccount:getSharedAccount', 'society_cartel', function(account)
	TriggerEvent('esx_addoninventory:getSharedInventory', 'society_cartel', function(inventory)

		if account.money >= 250000 then
		
		  TriggerClientEvent('esx:showNotification', source, 'Du har köpt en borrmaskin för $250000')
		  
		  inventory.addItem('drill', 1)
		  account.removeMoney(250000)
		  
		else
		  TriggerClientEvent('esx:showNotification', source, 'Medges ej')
		end

	end)
	end)
end)

Then add this in client.lua

		if data.current.value == 'get_drill' then
			TriggerServerEvent('esx_cartel:buyItem')
		end

I get this error when i try the script, can i please get some help? This is an awesome script that i want on my server :slight_smile:

https://gyazo.com/1c4db72a66686ebec02ad4986967479b

Need help :confused:

1 Like

Rename “name” in sql to “your collumn name” or what you have in ur DB

1 Like

the animation is not ending when the theft ends

It would be cool if the animation ended when the robbery ended.

Sorry. I’ve been out from FiveM for 6+ months I wont be updating this plugin since my knowledge is limited.

how to add more banks to rob

So the scripts is working great when testing it.

  • But i got a problem with the “shop” script, which means, the drill cant be bought at a shop, and by buying the drill from a gang is not really an option.

So the question is, can you disable the feature, where you need a drill to do the robbery or do you have to have the drill no matter what.

Please keep me informed, if any have a question.

Thanks. :wink:

Why can´t you buy it in the shop Kasper_Niemann?

I wish i could tell you why.

  • When i go to the shop, there are no items, not even the drill in the shop.
    And i have done everything the dev of the script has told to fix it.

But this post isn’t about the shop, but more if it was possible to disable the drill part. :slight_smile:

1 Like

But, if you don´t want to use the drill, just use original script.
Here is the github link: https://github.com/TanguyOrtegat/esx_holdupbank

1 Like