[PAID] [ESX] [NUI] Players Battles

A script by FuegoDel

No reviews yet.
[PAID] [ESX] [NUI] Players Battles main image

Full Description

Fuego Battles

Fuego Battles is a One vs One script made for Player vs Player servers, but it can be used in a roleplay servers
as well as a fun event.

Features

  • NUI menu
  • Bult in Leaderboard
  • Check Live Matches
  • Queue- like system for players to wait for another player
  • Random Maps and map images through another NUI
  • Alerts/Chat messages/Notifications
  • Bucket System so if players get in the same map with an other battle
    they can’t see each other and can’t shoot each other
  • Return player back if his opponent leaves the server
  • Rewards
  • Timers
  • Restrictions from switching to another gun
  • Seted up to work with my Top 10 Leaderboard

Configurables

  • Timers before joining the battle and before battle starts
  • Announce Win messages
  • All notifications and alerts
  • Random List of weapons that are beign given to the player upon
    joining the battle(he can not use any other weapon)
  • Server Name (Changes the title on chat messages)
  • Multiple NPC Locations so players can join into the same battle across the map
    Random list of Maps(map name, map image, player one and player two coordinates)
  • Rewards (choose to give or not) between money and items
  • If you use my top10 leaderboard(command name,title)

Config Preview

Config = {}

Config.WaitTime = 5 --Seconds before joining the battle

Config.CountDown = 10 --Seconds before the battle starts

Config.AnnounceWin = true --Announce a global message each time someone wins a battle

Config.ServerName = 'Fuego Battles' --Replaces the text string in the chat message

Config.Weapons = {
    'weapon_carbinerifle', --Random weapons
    'weapon_assaultrifle'
}

Config.NPCLocations = {
    {
        npcmodel = 866411749, --Setup mutile npc locations
        x = 1638.15,
        y = 2631.05,
        z = 45.56
    },
  --[[  {
        npcmodel = 866411749, --Setup mutile npc locations
        x = 1638.15,
        y = 2631.05,
        z = 45.56
    }]]

}

Config.Positions = { --Random Mpas
    {
        mapname = 'Sandy Shores',

        mapimage = 'shandy',

        PlayerOne = {
            x = 2376.49,
            y = 3133.92,
            z = 48.09,
            Heading = 90.64

        },
        
        PlayerTwo = {
            x = 2332.91,
            y = 3133.31,
            z = 48.18,
            Heading = 286.48
            
        }
    },
    {
       
        mapname = 'Skate Park',

        mapimage = 'skate',

        PlayerOne = {
            x = -268.86,
            y = -1586.63,
            z = 31.85,
            Heading = 351.29

        },
        
        PlayerTwo = {
            x = -262.35,
            y = -1554.59,
            z = 31.85,
            Heading = 166.48
            
        } 
    },
}

Config.HelpNotifications = {
    threedtext =  'Press ~b~E~s~ to browse battle menu',
    topNotification = 'Press E to browse battle menu'
}

Config.Messages = {

    JoinedBattle = 'Joined Battle. Prepare yourself!',
    LeftMessage = 'Your opponent has left the server!',
    WonMessage = 'Congratulations! You have won the battle!',
    LostMessage = 'Sorry! You lost the battle!',
    WaitingForOpponent = 'You are queued up! Waiting for opponent!',
    AlreadyInQueue = 'You are already in queue!',
    CantCancel = 'Your match is staring you can not cancel it',
    NotInQueue = 'You are not queued up for a battle',
    MatchCancelled = 'You have been removed from matchmaking queue'
    
}

Config.Rewards = {
    money = {
        uses = true, --Use it or not
        ammount = 2000, --Money Amount
        account = 'cash' --Leave this howerver you want in you want the script to give cash
    },
    items = {
        uses = true, --Use it or not
        item = 'military', --Item spawn name
        ammount = 5, --Item count
    }
}

Config.FuegoTopTen = {
    uses = true, --If you use my top 10 resource --https://forum.cfx.re/t/free-standalone-top-10-leaderboard/4856028
    CommandName = 'top10fighters',
    title = 'FIGHTERS'
}

Links

CONFIG ENCRYPTION HAS BEEN REMOVED! THANKS FOR YOUR FEEDBACK.
Please those who downloaded the file go to keymaster and redownload it! <3

Code is accessible No
Subscription-based No
Lines (approximately) Back end is 500 lines
Requirements es_extended, mysql-async
Support Yes