[PAID] [ESX] [NUI] Players Battles

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
4 Likes

If you implement a round system and that 2vs2 can be done, I’ll buy it immediately, willing to pay for open source! <3

Looks good! Is it possible to add keys what players can not use like open their inventory? Or what happens if they open inventory during the fight and choose a weapon from there?

Also can you please put in the config a price to pay to join? Like ex. 1000$ to join the fight but if they win they get 2000$ so double or nothing this case.

If you can do this I will buy the script!

Hello! As i typed in the features while the player is in a battle, he can not choose any other weapon because if he will, in mattter of miliseconds the weapon will be changed to the one that the script choose for him when he joined the battle! Will add the price to join right when i get back! Thank you for your feedback.

Hello! Very cool and nice idea… i will probably do it when i got a lot of free time!

I am interested in doing business with you, how can I contact you?

Hi, i’m bought your script but i can’t config myself.
Plase contact me for how to config.

1 Like

Hi, I bought your script and the config (the client too) is with encryption.

fixed!

Appreciate that :heart:
I still need to talk with you about the client and server-side on discord, my esx main trigger is different and not like the normal one.

Tommorow i will add an update for the esx trigger

can i config win count?

and leaderboard name not show
how to get name?

very good script but can you maybe sell open source cause i want to add features and edit the code
also my esx core object is different so it wont work

Core object is configurable on the config, at the moment im not giving it open source, maybe on the future!

Is it possible to have a custom revive method and support weapon as item?

can you please update script so works with new es_extended and ox_inventory too ?