Giter Club home page Giter Club logo

npc_bounty's Introduction

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


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

npc_bounty's People

Contributors

erraticl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.