HRScripts Documentation
  • HRScripts Documentation
  • Resources
    • 📚HRLib
      • Classes
        • HRLibConfig
        • HRLibClientFPlayer
        • HRLibServerFPlayer
        • HRLibClientIPlayer
        • HRLibServerIPlayer
        • HRLibCloseIPlayer
        • HRLibCloseFPlayer
        • HRLibBlipOptions
        • HRLibBlipForCoordOptions
        • HRLibBlipForEntityOptions
        • HRLibBlipForAreaOptions
        • HRLibBlipForPickupOptions
        • HRLibInputDialogueTextOptions
        • HRLibVehicleProperties
      • Modules
        • Bridge
          • Shared
          • Client
          • Server
        • Callbacks
          • Shared
          • Client
          • Server
        • Closest
          • Client
        • Controls Disable
          • Client
        • CreateBlip
          • Client
        • DiscordMsg
          • Server
        • DoesIdExist
          • Shared
        • FPlayer
          • Shared
          • Client
          • Server
        • GetPedsInVehicle
          • Client
        • GetPedWeapons
          • Client
        • GetPlayers
          • Client
        • GetVehicleDoorStatus
          • Client
        • GetVehicleFromPlate
          • Client
        • Interface
          • Client
          • Server
        • IPlayer
          • Client
          • Server
        • PlayerIdentifiers
          • Server
        • RadomValueWithNoRepetition
          • Shared
        • RegCommand
          • Client
          • Server
        • Resource
          • Shared
          • Server
        • SpawnVehicle
          • Shared
        • Streaming
          • Client
        • string
          • Shared
        • table
          • Shared
        • ToVector
          • Shared
        • TrackingEntities
          • Client
            • Functions
            • Events
        • Values
          • Shared
          • Client
        • VehicleProperties
          • Client
          • Server
        • SetDefaultPedVariation
          • Shared
    • HRGarages
      • Classes
        • HRGaragesConfig
        • HRGaragesVehicleInfo
        • HRGaragesClientFunctions
      • Exports
        • Server
    • 📦HRStorages
      • Exports
        • Client
        • Server
      • Callbacks
      • Commands
    • 🧹HRComserv
    • 🥷HRHostage
    • HRAdminMenu
      • Events
      • Exports
        • Client
        • Server
      • State Bags
    • ☑️HRWhitelist
    • HRExtraCommands
    • 🚦HRRealisticTraffic
    • 🗣️HRNPCDialogue
      • Classes
Powered by GitBook
On this page
  • cDisable.registerProcess
  • cDisable.doesProcessExist
  • cDisable.getProcesses
  • cDisable.removeProcess
  1. Resources
  2. HRLib
  3. Modules
  4. Controls Disable

Client

The functions list of a module, created to provide system for disabling controls easier and more organized

cDisable.registerProcess

Function to register a control/controls disable process

function HRLib.cDisable.registerProcess(key: string|string[], processId: any)

Parameters description

  • key - the control(s) to disable with this process, if more than one, the controls must be in array

  • processId - the id to recognize the process with (it can be any value, none or nil isn't allowed, just so it can be used again to focus on the specific process)

cDisable.doesProcessExist

Function to check if a process exists in the list by given processId

function HRLib.cDisable.doesProcessExist(processId: any): boolean

Parameters description

  • processId - the id of the process you want to check

cDisable.getProcesses

Function to get all runned processes with their processId and control(s) disabled

function HRLib.cDisable.getProcesses():
{ key: string|string[], processId: any }[]? processes

Return description

  • processes - a list full of processes. Each process is a hash table with key — the value with all the controls disabled from the specific process and processId — the value with the process's id values in this list

cDisable.removeProcess

Function to stop and remove process from the list of processes

function HRLib.cDisable.removeProcess(processId: any): boolean? success

Parameters description

  • processId - the id of the process to stop and remove

Return description

  • success - contains boolean for whether or not the removal is successful

PreviousControls DisableNextCreateBlip

Last updated 25 days ago

📚