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
  • GetFPlayer
  • AllFPlayers
  • Notify
  • FocusedEvent
  1. Resources
  2. HRLib
  3. Modules
  4. FPlayer

Server

GetFPlayer

Function to get FPlayer's methods for the given player's server Id

function HRLib.GetFPlayer(playerId: integer): HRLibServerFPlayer

Parameters description

  • playerId - the player server Id to focus on

AllFPlayers

Function to get FPlayer's methods for all players in the server

function HRLib.AllFPlayers(): HRLibServerFPlayer[]?

Notify

Function to send notification to the focused player with HRLib's notification system

function FPlayer:Notify(
    description: string,
    type: 'success'|'error'|'info'|'warning',
    duration: number?,
    pos: 'top-right'|'center-right'|'bottom-right'|
    'frombelow-right'|'top-left'|'left-center'|'frombelow-left'?,
    sound: boolean?
)

Parameters description

  • description - the notification's content

  • type - the notification type

  • duration - the notification duration (default is 2500, in msec)

  • pos - the notification position on the screen (default is found in HRLib's config)

  • sound - sets whether or not the sound should be played (default is true)

FocusedEvent

Function to trigger a client event for the focused player

function FPlayer:FocusedEvent(eventName: string, ...: any)

Parameters description

  • eventName - the event name

  • ... - the event's parameters

PreviousClientNextGetPedsInVehicle

Last updated 1 month ago

📚