Config Script
FiveStar Script
config.lua
-- ! ███████╗██╗██╗ ██╗███████╗███████╗████████╗ █████╗ ██████╗
-- ! ██╔════╝██║██║ ██║██╔════╝██╔════╝╚══██╔══╝██╔══██╗██╔══██╗
-- ! █████╗ ██║██║ ██║█████╗ ███████╗ ██║ ███████║██████╔╝
-- ! ██╔══╝ ██║╚██╗ ██╔╝██╔══╝ ╚════██║ ██║ ██╔══██║██╔══██╗
-- ! ██║ ██║ ╚████╔╝ ███████╗███████║ ██║ ██║ ██║██║ ██║
-- ! ╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝
-- ! Copyright ® 2024 Lorem All rights FiveStar
-- ! 5star.tebex.io | discord.gg/PK6g3CMe5z
Config = {}
-- * If an update is released for the script, it will not allow the script to start and will cause the server to shut down
Config.CheckVersion = false
Config.Setting = {
Command = "help",
KeyBind = "f11",
Cooldown = 1000,
Status = "keybind-command", ---@param command or keybind-command
PlayerJobNow = function() ---@alias If you want to set permission for categories or data, you must return the player job in this function
if GetResourceState("es_extended") == "started" then
local data = exports['es_extended']:getSharedObject().PlayerData
return { Name = data.job.name, Rank = data.job.grade }
elseif GetResourceState("qb-core") == "started" then
local data = exports['qb-core']:GetCoreObject().Functions.GetPlayerData()
return { Name = data.job.name, Rank = data.job.grade.level }
end
end,
HideHud = function(status)
DisplayRadar(not status)
if status then
if math.random(0, 1) then
ExecuteCommand("e think4")
end
else
ClearPedTasks(PlayerPedId())
end
end
}
Config.Head = {
Title = "You need help?",
Text = "You can find your question or problem in any part of the following categories",
BodyStatus = {"Show more", "Hide result"},
DataNotFound = {"Data not found!", "No info found for %s :("},
ActiveTags = { ---@alias tag name, access permission, style button | index one is default
["faq"] = { Permission = "everyone" }, ---@alias Index is default | Permission: All players - Style: background blue
["vehicle"] = { Permission = "everyone" },
["jobs"] = { Permission = "everyone" },
["report"] = { Permission = "everyone" },
["keybind"] = { Permission = "everyone" },
["weapon"] = { Permission = "everyone" },
["police"] = {Permission = {Name = "police", Rank = 1}, Style = "background: #5865F4;" }, ---@alias job level example(1) and above
["medic"] = {Permission = {Name = "ambulance", Rank = 1}, Style = "background: #416CAD;" }, ---@alias job level example(1) and above
["mechanic"] = {Permission = {Name = "mecano", Rank = 1}, Style = "background: #AC902B;" } ---@alias job level example(1) and above
},
AnimationOpenButton = {'Loading<span class="loading-tag">...</span>', 'Loading Done!', 'Opening Page<span class="loading-tag">...</span>'},
Character = {
Status = true,
Url = "img/character.png"
},
CharacterPattern = true,
ESC = {
Status = true,
MainPage = "PRESS ESC TO EXIT",
MediaPage = "PRESS ESC TO CLOSE MEDIA"
},
}
-- _ _ _ _
-- _____ ____ _ _ __ ___ _ __ | | ___ | |_ ___ _ __ ___ _ __ | | __ _| |_ ___
-- / _ \ \/ / _` | '_ ` _ \| '_ \| |/ _ \ | __/ _ \ '_ ` _ \| '_ \| |/ _` | __/ _ \
-- | __/> < (_| | | | | | | |_) | | __/ | || __/ | | | | | |_) | | (_| | || __/
-- \___/_/\_\__,_|_| |_| |_| .__/|_|\___| \__\___|_| |_| |_| .__/|_|\__,_|\__\___|
-- |_| |_|
-- {
-- Title = "HOW TO JOIN THE DISCORD?", ---@alias You can comment it
-- Text = "If you’re already logged into Discord, it will ask you to confirm joining. If not, you’ll be prompted to log in or create a Discord account first.",
-- StatusOpen = false, ---@alias if true, text no overflow
-- TagsAccess = {"faq"},
-- -- Profile = "!", ---@param It can only have one char | "/ui/img/body/discord.png", ---@alias 63x633
-- Permission = "everyone", ---@param "everyone" | { Name = "police", Rank = 15 } ---@alias job level example(3)
-- Button = { ---@alias You can comment it
-- StatusOpen = false, ---@alias if true, without opening the menu, the button is displayed
-- Text = '<i class="fa-brands fa-discord"></i><span>JOIN NOW</span>',
-- Style = "background: #5865F2;",
-- Url = "https://discord.gg/PK6g3CMe5z"
-- },
-- Command = { ---@alias You can comment it
-- StatusOpen = false, ---@alias if true, without opening the menu, the command is displayed
-- Input = "/report <span style='color: #6CF14A;'>[reason]</span>",
-- AccsessCopy = true,
-- },
-- Media = { ---@alias You can comment it
-- StatusOpen = false, ---@alias if true, without opening the menu, the media is displayed
-- List = {
-- "media/1.png", ---@alias preview size: 234x140 - support format: video(mp4, webm) or image(png, jpg, gif, webp) - Discord cdn is not supported
-- "media/CDN-ERROR.mp4",
-- "https://player.vimeo.com/video/76979871?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media",
-- "https://www.youtube.com/watch?v=Xj0Jtjg3lHQ&pp=ygUHbXIgYmVzdA%3D%3D",
-- "https://www.youtube.com/embed/bn0Kh9c4Zv4",
-- "https://www.youtube.com/embed/NSCr0pJQ2MQ",
-- "https://youtube.com/embed/snX5YyflrGw",
-- }
-- }
-- }
Config.Body = {{
Title = "HOW TO JOIN THE DISCORD?",
Text = "If you’re already logged into Discord, it will ask you to confirm joining. If not, you’ll be prompted to log in or create a Discord account first.",
StatusOpen = false,
TagsAccess = {"faq"},
Profile = "/ui/img/body/discord.png",
Permission = "everyone",
Button = {
StatusOpen = true,
Text = '<i class="fa-brands fa-discord"></i><span>JOIN NOW</span>',
Style = "background: #5865F2;",
Url = "https://discord.gg/PK6g3CMe5z"
}
}, {
Title = "HOW TO REPORT A PLAYER?",
Text = "Begin by opening the chat box using the T key. Once the chat is open, type /REPORT followed by a brief description of the issue you’re experiencing. For example:",
StatusOpen = false,
TagsAccess = {"report", "faq"},
Profile = "?",
Permission = "everyone",
Command = {
StatusOpen = true,
Input = "/report <span style='color: #6CF14A;'>[reason]</span>",
AccsessCopy = true
}
}, {
Title = "How to join our community?",
Text = "To join the community, click on the Discord link or follow us on Instagram. We host regular events, competitions, and more!",
StatusOpen = true,
TagsAccess = {"faq"},
Profile = "#",
Permission = "everyone",
Button = {
StatusOpen = true,
Text = '<i class="fa-brands fa-twitter"></i><span>JOIN NEW</span>',
Style = "background: #1DA1F2;",
Url = "https://twitter.com/kakxer"
}
}, {
Title = "How to find Instagram ID?",
Text = "Open the Instagram app or go to instagram.com. In the search bar, type and check the results. Look through accounts, tags, or posts that might be associated with span. If it's a well-known account, it may appear at the top of the results.",
StatusOpen = false,
TagsAccess = {"faq"},
Profile = "/ui/img/body/instagram.png",
Permission = "everyone",
Button = {
StatusOpen = true,
Text = '<i class="fa-brands fa-instagram"></i><span>Instagram</span>',
Style = "background: linear-gradient(90deg, #FFD600 0.06%, #FF7A00 24.53%, #FF0069 50%, #D300C5 75.97%, #7638FA 99.94%);",
Url = "https://instagram.com/kakxer"
},
Media = {
StatusOpen = true,
List = {"media/1.png", "media/2.png", "media/3.png", "media/4.png"}
}
}, {
Title = "Where can I find the server rules?",
Text = "Server rules can be found in the #rules channel on Discord. It is important to read and follow them to ensure a smooth experience for all players.",
StatusOpen = false,
TagsAccess = {"faq"},
Profile = "?",
Permission = "everyone",
Button = {
StatusOpen = true,
Text = '<i class="fa-solid fa-scale-balanced"></i>Rules',
Style = "background: #FF5722;",
Url = "https://discord.com/rules"
}
}, {
Title = "How to use voice chat?",
Text = "To use voice chat, connect to a voice channel on Discord. Make sure your microphone is enabled in the settings.",
StatusOpen = false,
TagsAccess = {"faq"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to follow the official Twitch?",
Text = "If you’re already logged into Twitch, it will ask you to confirm joining. If not, you’ll be prompted to log in or create a Twitch account first, then search us and follow us",
StatusOpen = false,
TagsAccess = {"faq"},
Profile = "/ui/img/body/twitch.png",
Permission = "everyone",
Button = {
StatusOpen = true,
Text = '<i class="fa-brands fa-twitch"></i>TWTTCH</span>',
Style = "background: #6743AB;",
Url = "https://www.twitch.tv/ninja"
}
}, {
Title = "How to customize your character?",
Text = "To customize your character, visit the character creation menu in-game. You can adjust appearance, clothing, and other features.",
StatusOpen = false,
TagsAccess = {"faq"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to reset my password?",
Text = "To reset your password, visit the password reset page on the website and follow the instructions sent to your email.",
StatusOpen = false,
TagsAccess = {"faq"},
Profile = "?",
Permission = "everyone",
Button = {
StatusOpen = true,
Text = '<i class="fa-solid fa-lock"></i>Click here',
Style = "background: #FF9800;",
Url = "https://discord.com/support"
}
}, {
Title = "How to contact support?",
Text = "If you need assistance, open a support ticket on Discord or use the /support command in the game.",
StatusOpen = false,
TagsAccess = {"faq"},
Profile = "?",
Permission = "everyone",
Button = {
StatusOpen = true,
Text = '<i class="fa-solid fa-headset"></i><span>Support</span>',
Style = "background: #673AB7;",
Url = "https://discord.com/support"
}
}, {
Title = "How to buy a car?",
Text = "To purchase a vehicle, visit any car dealership in the city. Choose the car you want, and then use the in-game interface to purchase it using in-game currency.",
StatusOpen = false,
TagsAccess = {"vehicle"},
Profile = "$",
Permission = "everyone",
Button = {
StatusOpen = false,
Text = 'Visit',
Style = "background: #FF9F00;",
Url = "https://twitchfarsi.com/"
},
Media = {
StatusOpen = true,
List = {"https://www.youtube.com/watch?v=8-0018J7DxE", "https://www.youtube.com/watch?v=4V3mo6aHTq0",
"https://www.youtube.com/watch?v=PCpzn_B6sxU", "https://www.youtube.com/watch?v=fuEpMFxV1bo"}
}
}, { -- ! buged
Title = "How to sell a car?",
Text = "To sell your car, go to a car dealership and interact with the vehicle sale option. You’ll receive a payment based on the vehicle’s value.",
StatusOpen = false,
TagsAccess = {"vehicle"},
Profile = "$",
Permission = "everyone"
}, {
Title = "How to become a police officer?",
Text = "To become a police officer, you need to join the police force via the recruitment center. You must be level 2 and above to apply.",
StatusOpen = false,
TagsAccess = {"police"},
Profile = "?",
Permission = {
Name = "police",
Rank = 1
},
Button = {
StatusOpen = false,
Text = 'Apply Now',
Style = "background: #5865F4;",
Url = "https://twitchfarsi.com/"
}
}, {
Title = "How to modify a car?",
Text = "Visit the vehicle customization shop to change your car’s paint, wheels, and other features.",
StatusOpen = false,
TagsAccess = {"vehicle"},
Profile = "&",
Permission = "everyone"
}, {
Title = "How to fuel your car?",
Text = "To fuel your vehicle, drive to the nearest gas station and use the fuel pump to refuel your car.",
StatusOpen = false,
TagsAccess = {"vehicle", "faq"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to lock/unlock your car?",
Text = "To lock or unlock your car, approach your vehicle and press the designated key to control the car locks.",
StatusOpen = false,
TagsAccess = {"vehicle", "faq"},
Profile = "_",
Permission = "everyone"
}, {
Title = "How to rent a car?",
Text = "Visit the car rental agency to rent a vehicle. Select the car you want and use in-game money for the rental fee.",
StatusOpen = false,
TagsAccess = {"vehicle"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to use car insurance?",
Text = "Activate car insurance through the in-game menu. This will cover the cost of repairs in case your car is damaged or destroyed.",
StatusOpen = false,
TagsAccess = {"vehicle"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to get a luxury car?",
Text = "To get a luxury vehicle, visit a premium dealership and purchase one using in-game money or a special item.",
StatusOpen = false,
TagsAccess = {"vehicle"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to repair your car?",
Text = "Visit the vehicle repair shop to fix any damage to your car. The cost will depend on the severity of the damage.",
StatusOpen = false,
TagsAccess = {"vehicle"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to upgrade your vehicle?",
Text = "Upgrades can be done at various mechanics around the city. Visit the shop to add engine boosts, suspension upgrades, or even nitro.",
StatusOpen = false,
TagsAccess = {"vehicle", "roleplay"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to report a bug?",
Text = "To report bugs or issues, use the /bugreport command followed by a detailed description of the problem.",
StatusOpen = false,
TagsAccess = {"report"},
Profile = "!",
Permission = "everyone",
Command = {
StatusOpen = true,
Input = "/bugreport <span style='color: #FF0000;'>[description]</span>",
AccsessCopy = true
}
}, {
Title = "How to get a job as a medic?",
Text = "To apply for a medic job, you must be level 3 or above and visit the ambulance station to apply. Once accepted, you will be trained to provide medical services.",
StatusOpen = false,
TagsAccess = {"medic", "roleplay"},
Profile = "#",
Permission = {
Name = "ambulance",
Rank = 1
}
}, {
Title = "How to change keybindings?",
Text = "To change your keybindings, open the settings menu (ESC key) and navigate to the Controls tab to customize your key inputs.",
StatusOpen = false,
TagsAccess = {"keybind"},
Profile = "/",
Permission = "everyone"
}, {
Title = "How to apply for a job?",
Text = "To apply for a job, visit the job center in the city. You will be able to choose from a variety of available jobs and submit your application directly through the interface.",
StatusOpen = false,
TagsAccess = {"jobs", "roleplay"},
Profile = "/",
Permission = "everyone",
Command = {
StatusOpen = true,
Input = "/applyjob <span style='color: #FF9F00;'>[job name]</span>",
AccsessCopy = true
}
}, {
Title = "How to find job listings?",
Text = "You can find job listings by visiting the city job board. Look for different job opportunities available based on your skills and preferences.",
StatusOpen = true,
TagsAccess = {"jobs", "roleplay"},
Profile = "?",
Permission = "everyone",
Button = {
StatusOpen = true,
Text = '<i class="fa-solid fa-user-doctor"></i>View Job Listings',
Style = "background: #FF9800;",
Url = "https://fontawesome.com/"
},
Media = {
StatusOpen = true,
List = {"https://www.youtube.com/watch?v=iXpHIQaSMhE", "https://www.youtube.com/watch?v=uw_jAN1GQNg",
"https://www.youtube.com/watch?v=TurPpRtQ7Qw", "media/4.png"}
}
}, {
Title = "How to get promoted?",
Text = "To get promoted in your current job, you must perform well in your tasks. Completing special assignments and maintaining high performance will earn you promotion opportunities.",
StatusOpen = false,
TagsAccess = {"jobs", "roleplay"},
Profile = "/",
Permission = "everyone",
Command = {
StatusOpen = true,
Input = "/promotionstatus",
AccsessCopy = true
}
}, {
Title = "How to work as a police officer?",
Text = "To work as a police officer, apply through the police job board. Once accepted, you will be responsible for enforcing the law, patrolling, and assisting citizens.",
StatusOpen = false,
TagsAccess = {"jobs", "police", "roleplay"},
Profile = "?",
Permission = {
Name = "police",
Rank = 1
},
Button = {
StatusOpen = false,
Text = 'Police Department',
Style = "background: #2196F3;",
Url = "https://fontawesome.com/"
}
}, {
Title = "How to be a medic?",
Text = "To become a medic, apply through the ambulance job board. As a medic, you'll be responsible for providing emergency medical services and assisting injured players.",
StatusOpen = false,
TagsAccess = {"jobs", "medic", "roleplay"},
Profile = "/",
Permission = {
Name = "ambulance",
Rank = 1
},
Command = {
StatusOpen = true,
Input = "/medicstatus",
AccsessCopy = true
}
}, {
Title = "How to work as a mechanic?",
Text = "Mechanics can fix vehicles, upgrade parts, and provide maintenance. You can apply for the mechanic job at the garage, and after being accepted, you will start fixing vehicles in the city.",
StatusOpen = false,
TagsAccess = {"jobs", "mechanic"},
Profile = "?",
Permission = "everyone",
Button = {
StatusOpen = true,
Text = '<i class="fa-solid fa-toolbox"></i>Mechanic',
Style = "background: #4CAF50;",
Url = "https://fontawesome.com/"
}
}, {
Title = "How to handle special assignments?",
Text = "Special assignments are given based on job performance and specific needs. These assignments can lead to higher rewards and promotion opportunities.",
StatusOpen = false,
TagsAccess = {"jobs"},
Profile = "/",
Permission = "everyone",
Command = {
StatusOpen = true,
Input = "/specialassignments",
AccsessCopy = true
}
}, {
Title = "How to become a VIP worker?",
Text = "VIP workers have access to exclusive jobs and perks. To become a VIP worker, you must either purchase a VIP package or be invited based on your performance.",
StatusOpen = false,
TagsAccess = {"jobs"},
Profile = "?",
Permission = "everyone",
Button = {
StatusOpen = true,
Text = '<i class="fa-solid fa-star"></i>VIP Information',
Style = "background: #9C27B0;",
Url = "https://fontawesome.com/"
}
}, {
Title = "How to buy weapons?",
Text = "To purchase weapons, visit the nearest gun shop or black market dealer in the city. You can buy different types of guns, from pistols to sniper rifles, with in-game money. Each shop offers various selections based on your level and reputation.",
StatusOpen = false,
TagsAccess = {"weapon", "roleplay"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to create weapons?",
Text = "Illegal weapons can be obtained through the black market dealers located in hidden areas around the city. Keep in mind that these weapons are only available for a limited time and come with high risks.",
StatusOpen = false,
TagsAccess = {"weapon", "roleplay"},
Profile = "?",
Permission = "everyone",
Media = {
StatusOpen = false,
List = {"https://www.youtube.com/watch?v=ZSOa8u2wYY4",
"https://www.youtube.com/watch?v=qcmY_9oAZIw&pp=ygUPd2VhcG9uIGdyYW5kIHJw",
"https://player.vimeo.com/video/76979871?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media",
"https://www.youtube.com/watch?v=efZOYh6GUrc&pp=ygUPd2VhcG4gZ3JhbmQgcnAg"}
}
}, {
Title = "What weapons require a license?",
Text = "Certain high-powered weapons such as assault rifles, sniper rifles, and grenade launchers require a special license to purchase and carry. You can acquire these licenses from the government or through special missions.",
StatusOpen = false,
TagsAccess = {"weapon", "roleplay"},
Profile = "!",
Permission = "everyone"
}, {
Title = "How to upgrade your weapons?",
Text = "Weapons can be upgraded at the gun shops or via specialized dealers in the city. Upgrades include better scopes, extended magazines, and enhanced damage. Be sure to check for any special offers for weapon upgrades.",
StatusOpen = false,
TagsAccess = {"weapon", "roleplay"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to use your weapons effectively?",
Text = "To effectively use weapons, practice aiming and shooting at the shooting range. Understanding the recoil and bullet spread is key to mastering each weapon. You can find shooting ranges in various parts of the city for training.",
StatusOpen = false,
TagsAccess = {"weapon", "roleplay"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to equip your weapon?",
Text = "To equip your weapon, open your inventory and select the weapon you want to use. You can assign different weapons to quick slots for faster access during combat. Always keep your weapons organized in your inventory.",
StatusOpen = false,
TagsAccess = {"weapon", "roleplay"},
Profile = "_",
Permission = "everyone"
}, {
-- Title = "Weapon restrictions and regulations",
Text = "Each city has its own weapon laws. Make sure you follow the local laws regarding weapon ownership and use. Possessing illegal weapons without a license can result in heavy fines or jail time.",
StatusOpen = false,
TagsAccess = {"weapon", "roleplay"},
Profile = "?",
Permission = "everyone"
}, {
Title = "What are the best weapons for self-defense?",
Text = "For self-defense, pistols, shotguns, and tasers are recommended. These weapons are easy to use and effective in close combat situations. Make sure to carry a backup weapon if you plan on facing multiple enemies.",
StatusOpen = false,
TagsAccess = {"weapon", "roleplay"},
Profile = "?",
Permission = "everyone"
}, {
Title = "How to store your weapons safely?",
Text = "To store your weapons safely, you can use secure lockers at your home or other safe locations. Avoid carrying too many weapons at once to reduce the risk of losing them in case of a police raid.",
StatusOpen = false,
TagsAccess = {"weapon", "roleplay"},
Profile = "-",
Permission = "everyone"
}}
Last updated
Was this helpful?