[ESX] esx_tk_npcrobbery - Rob NPCs

esx_tk_npcrobbery

[ Video ]
[ QBCore version ]

About

This script adds the ability to rob NPCs. Script has been tested with ESX V1 Final, but should work with all ESX versions. If not, you can always contact me!

Features

  • Well-optimized
    • 0.01ms | Idle
    • 0.02ms - 0.07ms | In usage
  • Uses FiveM Asset Escrow System, but if there is anything you would like to get changed or added to the editable file, contact me and I can probably change it!
  • Highly customizable
    • Change the amount of money you’ll get
    • Change cops needed to rob npcs
    • Change cooldown
    • & much more
  • How does it work?
    • You’ll need to go next to a NPC and press E
    • If you have a weapon in your hand the NPC will put its hands up and stay in place
    • You’ll need to intimidate the NPC for a configurable time
      • You will need to aim at the NPC with a gun or a melee weapon and stay close enough
      • If you don’t aim at the NPC or you go to far away, the NPC will flee and you won’t get any money
    • If you manage to intimidate the NPC for long enough, he will give you a configurable amount of money
    • When robbing the NPC, there is also a small chance that the NPC will rob you (can be turned off)
  • Includes notification to police and english & finnish locales
Screenshots




4

Requirements

Purchase (9.99€ + VAT)


My other work

8 Likes

a short really stupid question is the script only when you have restarted the server? XD

I don’t really understand your question. What do you mean?

does the server have to be restarted so that the script works?

You can either restart the server or just type: start esx_tk_npcrobbery in console and add that to your server.cfg and it should work fine too.

with us the script does not run unfortunately even after a server restart it does not work and I can not see any errors even the console does not give out any errors

1 Like

Do you have a dc where I could contact you?

yes have DC i will write you a pn with my dc name right away

IP Locked | Encrypted?

Update 1.1.0

  • You can now also add items and weapons as rewards for robbing NPCs
  • Overall improvements to the code
  • New config option Config.TextOnlyWhenAiming, when set to true, the “Press E to rob” text will only show up if you are aiming at the NPC with a weapon

Update 1.1.2

  • New config option Config.InteractKey

Update 1.1.5

  • New config option Config.BlacklistedModels

Update 1.2.0

  • Several improvements and fixes

Update 1.2.1

  • Fixed not being able to get black money

Update 1.2.2

  • New config option Config.AllowPoliceToRob

Update 1.2.3

  • Improvements to the code

Update 1.2.4

  • Moved progress bar to editable client file

Update 1.2.5

  • Added a new config option Config.RobAgainstGun

Update 1.2.6

  • Fixed Config.RobAgainstGun not working as intended

Update 1.2.7

  • Added logs