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
  • PlayerIdentifier
  • PlayerIdentifierByIndex
  • PlayerServerIdByIdentifier
  1. Resources
  2. HRLib
  3. Modules
  4. PlayerIdentifiers

Server

PlayerIdentifier

Function to get player identifier by its string type with multiple options

function HRLib.PlayerIdentifier(
    playerId: integer?,
    identifier: string|'all'|string[],
    removeNames: boolean?
    isArray: boolean?
): ...|string|string[]?

Parameters description

  • playerId - the player's server Id

  • identifier - the identifier type Available types: 'steam' 'license' 'license2' 'fivem' 'discord' 'live' 'xbl' 'ip' 'all' - to get all the identifiers of the player (these above 'all') string[] - list of multiple identifiers types (from the ones above 'all')

  • removeNames - sets whether or not the identifiers names before the identifier itself must be removed

  • isArray - sets whether or not the return value must be as an array or not

PlayerIdentifierByIndex

Function to get player identifier by its string type with multiple options

function HRLib.PlayerIdentifier(
    playerId: integer?,
    identifier: integer|'all'|integer[],
    removeNames: boolean?
    isArray: boolean?
): ...|string|string[]?

Parameters description

  • playerId - the player's server Id

  • identifier - the identifier type Available types: 0-7 - the index is the identifier type's index 'all' - to get all the identifiers of the player integer[] - list of multiple identifiers types (from 0 to 7 as an integer)

  • removeNames - sets whether or not the identifiers names before the identifier itself must be removed

  • isArray - sets whether or not the return value must be as an array or not

PlayerServerIdByIdentifier

Function to get the player server Id of the player which owns the given identifier (no matter which identifier you give as long as it exists for a player in the server)

function HRLib.PlayerServerIdByIdentifier(identifier: string): integer? playerId

Parameters description

  • identifier - the identifier of the player you want to know the player server Id of

Return description

  • playerId - contains the player's server Id if exists according to the identifier

PreviousPlayerIdentifiersNextRadomValueWithNoRepetition

Last updated 1 month ago

📚