FiveStar Development
YoutubeCFX forumTebexDiscord
  • ๐Ÿ‘จโ€๐Ÿ’ปAbout Us
  • ๐Ÿ˜ŠControl Panel โฝแถ แต’สณ แถœแต˜หขแต—แต’แตแต‰สณหข แต’แถ  แต—สฐแต‰ แต’แถ แถ แถฆแถœแถฆแตƒหก หขแถฆแต—แต‰โพ
    • ๐Ÿ“ฒActive Redeem Code
    • โฌ‡๏ธDownload Script
    • ๐Ÿ‘พCreate License
    • ๐Ÿ“…Expiration date
    • โฌ…๏ธReset Data License
  • ๐ŸงพScripts
    • ๐Ÿ†˜FiveStar-HelpMenu
      • ๐Ÿง How to Install
      • โญ๏ธConfig Script
    • ๐Ÿ›ก๏ธFiveStar-Paintball
      • ๐Ÿ˜˜[ESX]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
      • ๐Ÿฅฐ[QB]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
    • ๐Ÿ”ซFiveStar-WeaponShop
      • ๐Ÿ˜˜[ESX]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
      • ๐Ÿฅฐ[QB]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
    • ๐Ÿ”FiveStar-Security [FREE FOR CUSTOMER]
      • ๐Ÿง How to Install
      • โญ๏ธConfig Script
    • ๐ŸŽŸ๏ธFiveStar-MissionClub
      • ๐Ÿ˜˜[ESX]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
      • ๐Ÿฅฐ[QB]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
    • ๐Ÿ›’FiveStar-VehicleShop
      • ๐Ÿ˜˜[ESX]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
      • ๐Ÿฅฐ[QB]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
    • ๐Ÿ’ธFiveStar-Subscribe
      • ๐Ÿ˜˜[ESX]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
      • ๐Ÿฅฐ[QB]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
    • ๐Ÿš˜FiveStar-Garage
      • ๐Ÿ˜˜[ESX]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
      • ๐Ÿฅฐ[QB]
        • ๐Ÿง How to Install
        • โญ๏ธConfig Script
    • ๐Ÿ’‹FiveStar-Speedometer [FREE]
      • ๐Ÿง How to Install
Powered by GitBook
On this page

Was this helpful?

  1. Scripts
  2. FiveStar-Security [FREE FOR CUSTOMER]

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)
-- *_________________________________________________________
PreviousHow to InstallNextFiveStar-MissionClub

Last updated 11 months ago

Was this helpful?

๐Ÿงพ
๐Ÿ”
โญ๏ธ
Page cover image