Coder Social home page Coder Social logo

majorkorgi / squadbattle Goto Github PK

View Code? Open in Web Editor NEW
26.0 1.0 4.0 137 KB

FiveM Team-Deathmatch script/game mode

License: GNU General Public License v3.0

JavaScript 99.29% Lua 0.71%
gta gta5 fivem fivem-script citizenfx fivem-server gtav deathmatch deathmatch-server pvp

squadbattle's Introduction

SquadBattle

FiveM script/game mode for playing Team deathmatches

License GNU-GPL v3 Lates release

Important

You need to have Onesync activated. Otherwise, some functionalities won't work properly

How to join a Team

To join a team, you just need to type the command /join [team]

  • [team] is the index of your team set up in teams.json config file

To leave a team, you just need to type the command /leave

As an Admin, you are able to end the game via the /EndGame command. If you had to restart the resource, but don't want to rejoin, you can just use /reloadAll, currently, this is only an admin command.

What comes next?

  • Deathmatch mode when all targets are destroyed. No revive of players
  • Winner szene
  • Freecam for dead players or players without a team.
  • Vehicle targets option for driving only in a specified Area
  • New target type "Escort target"
  • UI
  • Stuff for ambiente maybe?
  • Multiple game sessions?

Features

  • Multiple teams (More than 2 possible)
  • Godmode while waiting for game to start
  • Team dependent targets
  • After death, weapon drop. Adjustable in settings.json
  • Team vehicles have a limit for no infinite spawning
  • Targets can spawn multiple times for more vehicles / peds on the same spot

Config

settings

  • NeutralZone

    • spawnpoint = Where all players join when they are joining a server or leaving a team
    • ped_model = With what kind of ped they will spawn
    • blip = Map marker
  • Countdown

    • Minute = How long you wait before the game starts (Minutes)
    • Second = How long you wait before the game starts (Seconds)
    • MinPlayersToStart = The minimum amount of players each team needs, to start a game
    • PreMinute = How long you wait to prepare for the game (Minutes)
    • PreSeconds = How long you wait to prepare for the game (Seconds)
  • Teams

    • slots = Amount of Slots each team has
    • dropweapons = Turn on/off if players are able to drop weapons when they die
    • health = Maximum amount of health each player has
    • healthLimit = The recharge health limit of each player (only 0.1 to 0.999...)
    • armor = Amount of armor each player has (only 0 to 100)
  • Admins

    • All admins of the game mode, currently only with fivem:XXXXX and steam:XXXXXXXXXXXX identifier (other identifiers will be available later on)

targets

  • object_name = Kind of vehicle/ped

  • type = If this is a ped or a vehicle

  • spawnpoint = Where the target will spawn

  • MovesAround = If the target is moving around

  • team = Which team is hateful against this target. or use "global" if all teams are hateful against this target

  • attackTeam = Enable/Disable attacking hateful team immediately

  • Type: PED

    • WalkArea = Area where the peds will walk. MovesAround need to be activated
    • multipleAmount = Amount of peds
    • GiveWeapon = Turn on/off if peds gets a weapon when they spawn
    • weapon = Which weapon they will get (spawnname)
  • Type: VEHICLE

    • driver = Ped, which will drive the vehicle
    • driveStyle = * I guess it's self-explaining whats this does*
    • vehicleamount = Amount of vehicles which will spawn (if this is grader then 1, vehicles will drive automaticly around)
    • maxSpeed = Speed limit of the vehicle (in meters per seconds)

teams

  • "[team]"
    • used = If team is joinable or not
    • spawnpoint = Location where all players will spawn after the fist countdown
    • ped_model = ped_model Which kind of ped all players in this team will spawn
    • blip = Map marker of this team

vehicles

  • "[team]"
    • spawnpoint = Location where the vehicle will spawn
    • spawnname = Which kind of vehicle should spawn
    • primarycolor = Currently unused
    • secondarycolor = Currently unused
    • livery = Currently unused
    • limit = Maximum amount of vehicles can spawn

weapons

  • "[team]"
    • [weapon] = Which weapon players will get

squadbattle's People

Contributors

majorkorgi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

squadbattle's Issues

Admin tab not working.

SquadBattle UI is not allowing access.

I'm set as an admin through Steam Identifier (Image below) probably a simple fix. any response is appreciated
image
image

Thanks

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.