![[PAID] [STANDALONE] GunGame main image](https://forum-cfx-re.akamaized.net/original/4X/4/e/c/4ececbcb8f2411cbc967ea3847df00d942b6758b.gif)
Price
$40.00A script by d7y1
Price
$40.00Hello And Welcome !
d7y_GunGame
- GunGame Script . His idea, I expect, will be known from games such as Code. When you slaughter someone, a new weapon will come to you.
- From the Config, you can add a million GunGame maps.
- You can adjust the Marker as much as you want for each Map
- You can set the max and minimum for the number of players in the map.
- You can set the gungame that you want. Whether you let every kill change the weapon, or for every two kills, you can determine from the config.
- A beautiful death screen
- It has a nice, light ui.
- Special events for developers to add and modify what they want.
- This script can open an entire server
.
- You can set limits to the map boundry so that the player cannot get out of it or die.
- When the game starts, it will appear to the players outside the game that the game has already started.
- The rest of the things you can find in the YouTube video are better and better explained than the ones above .
Configration File
Config.lua
Config = {}
Config.minHealth = 120 -- Coma Health for ur framework (default 120)
Config.Maps = { -- Maps
["GunGame#1"] = { -- #1 Map
coords = { -454.54342651367, -339.85549926758, 34.363529205322 }, -- Center Coord
radius = 15.0, -- Radius
showRadiusBoundry = false, -- Marker That Show u the marker boundry
TimerInSecond = 300, -- Game Timer in second 300 = 5 min
JoinCoords = { -454.54342651367, -339.85549926758, 34.363529205322 }, -- enter Coord
Weapons = { -- Weapons
{
weapon = "WEAPON_APPISTOL",
kills = 3,
}, -- First Weapon and Required Kills
{
weapon = "WEAPON_PISTOL50",
kills = 4,
}, -- Second Weapon and Required Kills etc...
-- {weapon = "WEAPON_COMBATSHOTGUN", kills = 1},
-- {weapon = "WEAPON_RPG", kills = 1},
},
Spawns = { -- Spawn Locations
{ -450.04431152344, -330.2080078125, 34.499599456787 },
{ -460.74322509766, -327.47897338867, 34.501899719238 },
{ -463.95223999023, -338.94674682617, 34.500377655029 },
{ -463.77255249023, -350.64526367188, 34.498485565186 },
{ -451.42486572266, -352.35250854492, 34.501750946045 },
},
MinPlayers = 2, -- minimum Required Players To Start Game
MaxPlayers = 30, -- Maximum Players That Map Can Contain
MarkerSetting = { -- Marker Settings
id = 27, -- Marker ID || You Can Change It From Here https://docs.fivem.net/docs/game-references/markers/
color = {
r = 255,
g = 0,
b = 0,
}, -- Marker Colors
radius = 3.0, -- Radius That Can Player Enter From
ShowRadius = 4.0, -- Show Radius
rotate = true, -- If you want the marker to rotate just set it true
},
},
}
Config.blips = { -- Blips Settings To Show boundry on the map
color = 14, -- Blips Color || You can change it from here https://docs.fivem.net/docs/game-references/blips/#blip-colors
alpha = 255, -- Blips Opacity Start From 0 to 255
}
Config.WinsTimeOut = 10000 -- How long does the current win ui stay Current Time is : 10 seconds
Config.BoxTimeOut = 4000 -- How long does the current box on the left Stay Current Time Is : 4 seconds
Config.html = { -- Html Text You Can Change it From Here
["header"] = {
["Kills"] = "<content class='anim yellow'>Kills</content> Left", -- Header of The Remaining Kills
["Weapon"] = "<content class='anim red'>New</content> Weapon", -- Header of The New Weapon
["PressE"] = "Press <content class='anim white'>E</content> To Join", -- Header of The Press E
["GameStarted"] = "Game <content class='anim red'>Started !</content>", -- Header of the Game Already started
},
["BoxPlace"] = { -- box position of the new weapon and Remaining kills
["top"] = "40%",
["left"] = "1%",
},
["EBoxPlace"] = { -- box position of the Press E and Game Already Started
["top"] = "40%",
["left"] = "1%",
},
["Timer"] = { -- Timer Color When The Timer Under 30 sec and above 30 sec
["under30"] = "red", -- Avalible Colors : green | white | bronze | silver | gold
["above30"] = 'green', -- Avalible Colors : green | white | bronze | silver | gold
},
["locals"] = { -- Some locals
["place1"] = "1st : ",
["place2"] = "2st : ",
["place3"] = "3st : ",
["KillsLeft"] = "Kills Left : ",
["WeaponLevel"] = "Weapon Level : ",
["TimeLeft"] = "Time Left : ",
},
["Respawn"] = { -- Respawn Things
["Text"] = "You Have Been Killed By <span style='color: red;' class='KillerName'>D7y</span>", -- l !! Don't Change The Class Name or the player name will not be shown !
["Speed"] = 40, -- 10 = 1 sec
},
["OutZone"] = { -- Out of the Zone Things
["Text"] = "<content style='color: red;'>Go Back To The Zone !!</content>",
["Time"] = 5, -- The number of seconds after the zone kill the player
},
['Wins'] = {
["Tops"] = { -- Tops Locals
["place1"] = "First",
["place2"] = "Second",
["place3"] = "Third",
},
},
}
Config.ZoneName = "Zone"
Config.JoinKey = 38 -- E -- Enter Button
Config.LifeKey = 38 -- E -- Exit Button
Config.StartKey = 44 -- Q -- Start Button
Config.OnMarkerShows =
function(d) -- When the player can see the marker, you can benefit from it by adding a logo above the marker, as I did here, add a wolf sign
-- Runs Every Tick
local jx, jy, jz = table.unpack(Config.Maps[d]["JoinCoords"])
local scale = 1.0
DrawMarker(31, jx, jy, jz, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, scale, scale, scale,
Config.Maps[d]["MarkerSetting"]['color'].r, Config.Maps[d]["MarkerSetting"]['color'].g,
Config.Maps[d]["MarkerSetting"]['color'].b, 100, false, true, 2, Config.Maps[d]["MarkerSetting"].rotate,
false, false, false)
end
Config.OutofZone =
function(CurrentMap, status) -- When the player leaves the zone, and when the player returns to the zone, after he leaves, you can dress up and add the effects you want, or you can remove them.
if status then
SetTransitionTimecycleModifier("player_transition", 1.0)
SetExtraTimecycleModifier("mp_lad_night")
else
ClearTimecycleModifier()
ClearExtraTimecycleModifier()
end
end
Config.AlreadyJoined =
function(source) -- When The Player In The Game Try To Enter Again (rarely sent, except in the case of one who tried to do some glitch or somthing)
-- print(GetPlayerName(source) .. " AlreadyInGame")
GangNotify(source, "You're already in The game", "AUDIO_ERROR")
end
Config.OnPlayerStartWithoutJoining =
function(source) -- When a player tries to start the game and he is not in the game
-- print(GetPlayerName(source).." StartWithoutJoining")
GangNotify(source, "You Must Join The Game So You Can Start", "AUDIO_ERROR")
end
Config.OnWeaponGiven = function(weapon) -- When a player is given a weapon or his weapon is renew
end
Config.OnPlayerKilledInGunGame =
function(attacker, source, kills) -- When a player dies in the Gun Game as you see I added the effect to the one who kills. You can add the one you want.
TriggerClientEvent("d7y_GunGame:StartEffect", attacker) -- Effect Event You Can Add Your own
end
Config.OnWeaponChange = function(attacker, Gun) -- On Player Weapon Change
end
Config.OnWins = function(Tops) -- When the Game are over and they win, it will send a table of Top 3
end
Config.WhenGameIsFull = function(map, source) -- When The Game Is Full
GangNotify(source, "Game Full !", "AUDIO_ERROR")
end
Config.Server_OnGameStart = function(map, players) -- When The Game Started -- Server Side
for k, v in pairs(players) do
local src = v.ID
TriggerClientEvent("CustomEvent:DoSomthing", src, true)
end
end
Config.Server_OnGameEnd = function(map, players) -- When The Game Ended -- Server Side
for k, v in pairs(players) do
local src = v.ID
TriggerClientEvent("CustomEvent:DoSomthing", src, false)
end
end
function GangNotify(source, message, audio)
local Theme = "default"
if audio == "AUDIO_ERROR" then
Theme = "error"
end
TriggerClientEvent("D7-Notify:sendAdvanced", source, message, "~h~Polar", "GunGame Manager", "CHAR_MANUEL", 5000,
nil, true, Theme, audio)
end
Tebex And Price
Price : $40
Tebex : https://d7y.tebex.io/package/5242018
Code is accessible | No |
Subscription-based | No |
Lines (approximately) | 1000+ |
Requirements | No |
Support | Yes |
Other Releases
No approved reviews found for this script yet.