Giter VIP home page Giter VIP logo

dz-qb-turfs's Introduction

dz-qb-turfs

Gang turf war script. Each whitelisted gang in config.lua will be given HQ zones and as many different turfs as you want. Gang wars can't be started on any HQ zones.
After a war, the turf will be locked down for a specific amount of time that can be changed in config.lua. During this time, another war can't be started on the same turf. The lockdown is automatically released when a gang member attempts to start a new war if it is expired.
This resource is governed by the server and the client code is used just for display purposes. It currenlty runs at 0.02ms for players that are members of a whitelisted gang and 0.00ms for everyone else.

Dependencies

Check each resource listed below for any other dependencies they might have to run. This resource assumes that you have all of these installed and working correctly using the latest versions.

Installation

  • Download the script and put it in the [qb] directory.
  • Set your DB by importing init.sql.
  • Edit config.lua with coords or other custom fields.
  • Restart Script / Server.

ATTENTION

Do not modify the WarStages in config.lua unless you changed both the client and server script to match. This table controls the process of a turf war.
Do not set Debug to true in config.lua if this resource is running on a live server. This field will make the cirle zones arround each turf visible. It should only be used for development.
The scriptID in the DB has to match the equivalent element it the Turfs table in config.lua. Whenever a new turf is created, an equivalent record has to be manually inserted in the DB.

User Commands

  • None. Players will have to find the location of a fixer PED in the turf to trigger a war or collect rewards after winning a war.

Admin Commands

  • /challengeTurf - used to trigger a war on a turf. The player that uses it must be inside the trageted turf and must have a certain rank that can be set in config.lua. The war will not start if the gang is not whitelisted, if there are not enough other gang members online, or if the turf is locked.
  • /reloadTurfs - used to trigger a reload of the available turfs for all the clients.
  • /lockTurf - used to lock down a turf. You must provide a turf ID. To lock down a turf forever, set the lockExpirationTime to -1 in the DB.
  • /unlockTurf - used to unlock a turf. You must provide a turf ID.
  • /updateTurfControlledBy - used to update which gang controls a turf. You must provide a turf ID and a whitelisted gang name.

dz-qb-turfs's People

Contributors

deandum avatar

Watchers

 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.