Config Script
FiveStar Script
config.lua
-- ! โโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโ โโโโโโโ
-- ! โโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
-- ! โโโโโโ โโโโโโ โโโโโโโโโ โโโโโโโโ โโโ โโโโโโโโโโโโโโโโ
-- ! โโโโโโ โโโโโโโ โโโโโโโโโโ โโโโโโโโ โโโ โโโโโโโโโโโโโโโโ
-- ! โโโ โโโ โโโโโโโ โโโโโโโโโโโโโโโโ โโโ โโโ โโโโโโ โโโ
-- ! โโโ โโโ โโโโโ โโโโโโโโโโโโโโโโ โโโ โโโ โโโโโโ โโโ
-- ! Copyright ยฎ 2023 Lorem All rights FiveStar
-- ! 5star.tebex.io | Discord/HdEzqEJBdh | 5star.Codes
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 = true
Config.EventLoadedPlayer = "esx:playerLoaded" ---@param ESX: esx:playerLoaded | QBcore: QBCore:Client:OnPlayerLoaded
-- ! DetectSpawnVehicle: When set to true, it detects the spawning of vehicles using cheats and supports detection on both the server-side and client-side.
Config.DetectSpawnVehicle = true -- ? Detect spawn vehicle with cheat, supports detecting spawn vehicle server-side and client-side.
Config.ScriptSafeSpawnVehicle = {
DeleteAutomatic = false, -- ? Set DeleteAutomatic to true, and the script will automatically spawn vehicles with a weaker identification. However, if set to false, you will need to manually identify authorized scripts capable of spawning vehicles, which will result in a better and stronger identification process.
List = { -- * If you set DeleteAutomatic to true, include the allowed scripts
["es_extended"] = true,
}
}
-- ! DetectStopAndStartResources: When set to true, scripts that have 'FiveStar-' in their name cannot be stopped unless the server stops them.
Config.DetectStopAndStartResources = true -- ? Scripts that include 'FiveStar-' in their name cannot be stopped unless stopped by the server.
-- ! SafeEvents: When set to true, after installing the safe mode version of FiveStar scripts, cheaters cannot use events, dumper, block event and top script[in loading game] from FiveStar scripts. This enhances security by preventing unauthorized usage of events.
Config.SafeEvents = true
-- *_________________________Installation____________________________
-- ! EncryptionScriptAndAntiDumper: Automatic installation ==> enter the fssecurity help command in terminal server side | Manual installation ==>
-- ! put shared_scripts in the fxmanifest of the desired script, replace client_script with secure_client_scripts, and wrap the paths inside [[ ๐ ]] as shown below:
-- ! secure_client_scripts [[{
-- ! 'client/*.lua',
-- ! }]]
-- ? Place the client_scripts "@FiveStar-Security/FsSecurity/base.lua" in the "es_extended[Add to your core game mode]/fxmanifest.lua" file to ensure that the script is fully installed and functional.
-- ? shared_script "@FiveStar-Security/shared/config.lua"
-- ? shared_script "@FiveStar-Security/shared/main.lua"
-- ! server_scripts {
-- ! "@FiveStar-Security/FsSecurity/!sv.lua",
-- ! }
-- *_________________________________________________________________
Config.EncryptionScriptAndAntiDumper = true -- * FiveStar open source script only
-- ! CheckPlayerNetworkIsSession: This checks if player is playing on gta online or not.
Config.CheckPlayerNetworkIsSession = false -- ? If you set this to true, it will reduce the loading speed of the script.
-- ! DetectScriptExploit: The exploit script is detect and the player is banned
Config.DetectScriptExploit = true
Config.BanPlayer = function(Id, Reason) ---@param server side
-- * Event ban here
DropPlayer(Id, Reason)
end
-- *_________________________Exports_________________________
--? Ban safe export in client side
-- ! exports["FiveStar-Security"]:BanOrExitTheGame(Reason)
-- *_________________________________________________________
Last updated
Was this helpful?