/npc_bounty

This is a (somewhat) highly configurable FiveM resource made entirely in Lua. It's comparable to the GTA:O gang attacks.

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

npc_bounty

Quick video showcase

This is a configurable FiveM resource made entirely in Lua. It's comparable to the GTA:O gang attacks.

It features basic co-op functionality and many options to tune it to your liking.

I've also translated the notifications to German.

Table of contents

Prerequisites

Optional resources

How to install

Config options

How to add new locations

How to add more languages


Prerequisites

  • ESX
  • A working database
  • OneSync enabled on your FiveM server

Optional resources:

Install these like any other resource and set this in the config

Config.useMythic = true
Config.progBar = true

Mythic_notify

Progress Bars 1.0


How to install:

  1. Download the resource from GitHub
  2. Unzip it
  3. Put it in your resource folder
  4. Add "start npc_bounty" to your server.cfg
  5. Run bounty.sql
  6. Done

Config options:

  • Config.Locale - English or German. More translations might follow
  • Config.policeJob - The name of your servers police job
  • Config.amountCop - Amount of players with policeJob needed to start with difficulty 1
  • Config.hideBlip - For hiding the start location on the map
  • Config.cleanDead - Cleans up the killed NPCs on mission success/fail
  • Config.printRemaining - Draws the amount of NPCs remaining. Increases resource usage
  • Config.useMythic - If you want to use mythic__notify keep this on true
  • Config.progBar - If you want to use the progressbar keep this on true
  • Config.removeArea - This will remove the red radius on the map once the enemies spawn
  • Config.aiBlip - Shows enemies on the map
  • Config.useDirtyMoney - If this is set to true then you will receive dirty money instead of clean cash when selling Dog Tags
  • Config.waypoint - Sets a waypoint to the enemies once you're close enough
  • Config.blipSprite - Change the sprite of the blip if you're drawing it
  • Config.enemies - Amount of enemies you want to spawn
  • Config.enemyHealth - Sets the amount of health the enemies spawn with
  • Config.enemyAcc - The accuracy the enemies will have
  • Config.enemyVest - Toggle this to give the enemies armor
  • Config.enemyArmor - Amount of armor you want the enemies to have if the above is true
  • Config.radius - The search radius you want to draw on the map
  • Config.distance - Enemies will spawn once you've passed the distance you set here
  • Config.boxProp - The prop that should spawn on success
  • Config.spawnedEnemy - The peds that will attack you
  • Config.reward - Amount of money you will receive by selling Dog Tags

How to add new locations:

  1. Download a tool like vMenu or set Config.getCoords to true and use the command
  2. Find a suitable location for the middle of the area based on your radius
  3. Find a suitable location for enemies to spawn. Make sure you have enough space so they don't spawn inside stuff
  4. Find a good location for the crate spawn. (Optional) Hide it well
  5. Done

How to add more languages:

  1. Open the locales folder
  2. Create a new file in the locales folder and name it "yourlanguage".lua
  3. Translate the locales from English/German to your preferred language
  4. Add "yourlanguage".lua to the client_scripts and server_scripts in the fxmanifest.lua
  5. Done

Your fxmanifest should look like the one below

Your fxmanifest should look like this