TebexDiscordYouTubeTwitch
  • 👋Introduction
  • Information
    • 💬Discord Roles
    • 🔐FiveM Asset Escrow
    • 🤝Support Plans
    • 🌐Showcase Server
    • ⁉️Frequently Asked Questions
    • ⭐Staff & Beta Tester Applications
  • Paid Resources
  • 🛡️PHYLAX AC
  • 🔫BetterFight Evolved
    • 📚About BFE
      • 💁‍♀️Features
        • 🎯Recoil System
        • 💢Crosshair System
        • 🔥Temperature System & Jamming
        • 🔫Weapon Damages
        • 🎥ViewCam Enforcer
        • ♨️Triggerbot System
        • 🦘Jump Spam & Roll Prevention
        • 🥢Remove Whipping & Melee One Shot Prevention
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Weapons Config
      • ⚙️Security Config
      • ⚙️Discord Logs Config
    • ⤵️Base Installation
    • ⬅️Exports
  • 🏪Store Robberies Evolved
    • 📚About SRE
      • 💁‍♀️Features
        • 👨‍💼AI Shopkeeper System
          • 🗣️Tasks & Behaviors
          • 🤠Character Manipulation
        • 🔫Realistic Robbery Mechanics
        • 🚨Security Systems and Measures
        • 🛠️Customizable Store Configuratins
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Stores Config
        • ⚙️Global Store Settings
        • ⚙️Individual Store Settings
          • ⚙️Main Settings
          • ⚙️Polyzone Settings
          • ⚙️Shopkeeper Settings
          • ⚙️Stealable Settings
          • ⚙️Security Settings
      • ⚙️AI NPC Config
        • ⚙️Shopkeeper Character Settings
        • ⚙️Shopkeeper Animation List
        • ⚙️Shopkeeper Speech List
      • ⚙️Player Speech List
      • ⚙️Security Config
      • ⚙️Discord Logs Config
    • ⤵️Base Installation
    • 🛡️Security Integration
    • ⬅️Exports
  • 👁️HawkEye Surveillance
    • 📚About HES
      • 💁‍♀️Features
        • 📹CCTV Cameras
        • 🌐Jammers & Tracker
        • 🛠️Dynamic Configurations
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Camera & Jammer Config
        • ⚙️Items
        • ⚙️Camera Settings
      • ⚙️Security Config
      • ⚙️Discord Logs Config
    • ⤵️Base Installation
    • 🛡️Security Integration
    • ⬅️Exports
  • 🏦Pacific Bank Robbery
    • 📚About PBR
      • 💁‍♀️Features
        • 👨‍👩‍👦Ped Handler & Security Guards
        • 💡Vault Breaching Methods
        • 🔒Laser Security System
        • 💰Stealables & Robbery Mechanics
        • 🚪Doorlocks & Alarm System
        • 🖥️Server Synchronization
        • 🛠️Extensive Configurations
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Bank Config
      • ⚙️Security Config
      • ⚙️Discord Logs Config
    • ⤵️Base Installation
    • ⬅️Exports
  • 🏦Paleto Bank Robbery
    • 📚About PBR
      • 💁‍♀️Features
        • 👨‍👩‍👦Ped Handler & Security Guards
        • 💡Vault Breaching Methods
        • 🪛Locker Drilling
        • 💰Stealables & Robbery Mechanics
        • 🚪Doorlocks & Alarm System
        • 🖥️Server Synchronization
        • 🛠️Extensive Configurations
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Bank Config
      • ⚙️AI NPC Config
      • ⚙️Security Config
      • ⚙️Discord Logs Config
    • ⤵️Base Installation
    • ⬅️Exports
  • 🚘The Complete Vehicle System
    • 📙About TCVS
      • 💁‍♀️Features
      • 🔁Dependencies & Compatibility
      • ⚡Optimization
      • 🛡️Security
      • 🔐Encryption - FiveM Escrow
      • 🆕Changelogs
    • ⤵️Base Installation
    • ⚙️Configuration Settings
      • ⚙️Master Config
      • ⚙️Security Config
      • ⚙️Discord Logs Config
      • ⚙️Public Garages Config
      • ⚙️Private Garages Config
      • ⚙️Impound Config
      • ⚙️Insurance Config
      • ⚙️Parts Config
      • ⚙️Locksystem Config
      • ⚙️Trackers Config
      • ⚙️Vehicle Info Config
    • 🚗Vehicle Shop Integration
    • 👨‍🔧Mechanic Integration
    • 🛡️Security Integration
    • 🚀Snippets
      • ⭕QB-RadialMenu
    • ⬅️Exports
Powered by GitBook
On this page
  • In-Depth Explanation
  • Cheating Event Alert
  • Drop Player Function

Was this helpful?

  1. Store Robberies Evolved
  2. Configuration Settings

Security Config

Discover security options within our resource, protecting against cheaters for an enjoyable gameplay.

PreviousPlayer Speech ListNextDiscord Logs Config

Last updated 1 year ago

Was this helpful?

In-Depth Explanation

Security.EventPrefix = "cis_storeRobberies"

Assigns a unique base prefix to all events within the system, enhancing security by preventing the execution of unauthorized events.

Security.Debug = false

Toggles debug mode, prints relevant security information in the server console.

Security.AuthorizedResources = {
    "example",
}

Requires the list of resources that are permitted to trigger events, and security functions (GetEventCode - GetEventPrefix).

Security.DropPlayer = true

Toggles the option to run the cisAnticheatDropPlayer() function.


Cheating Event Alert

RegisterServerEvent('cis:anticheat:server:alert')
AddEventHandler('cis:anticheat:server:alert', function(message, src)
    if(src == nil)then
        src = source
    end
    
    TriggerEvent(Security.EventPrefix .. ":server:log", message, "cheating")
    if(Security.DropPlayer)then
        cisAnticheatDropPlayer(src)
    end
end)

  • Checks if the source of the alert (src) is specified. If not, it defaults to the source variable, which represents the player triggering the event.

  • Logs the alert message by triggering another event, which is prefixed with Security.EventPrefix to ensure it's part of the secured event naming convention. The message and a tag indicating "cheating" are passed along for logging purposes.

  • If Security.DropPlayer is set to true, it proceeds running the cisAnticheatDropPlayer() function. Sends the player ID.


Drop Player Function

function cisAnticheatDropPlayer(src)
    DropPlayer(src, "cis_anticheat: Kicked for cheating. If you believe this is a mistake, please contact the server owner.")
end

The function is designed to disconnect a player from the server when a cheating attempt is detected. The function requires a player's src (source identifier) as its parameter and uses the DropPlayer command to remove the player from the game, displaying a message that they were kicked for cheating.

You can customize this function by replacing the DropPlayer command with a banning method, allowing for more permanent measures against cheating.

🏪
⚙️
⚙️