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
  • Fields
  • setUIStatus
  • setPedInteraction
  • leaveVehicleAnimation
  • createRemovePoints
  • getFreeSpawnPoint
  1. Resources
  2. HRGarages
  3. Classes

HRGaragesClientFunctions

Fields

setUIStatus

Function to set HRGarages UI status

function functions.setUIStatus(
    status: boolean,
    isImpoundGarage: boolean?,
    isJobGarage: boolean?,
    garageName: string?
)

setPedInteraction

Function to set the interaction by type, set in the config of HRGarages for a ped

function functions.setPedInteraction(
    ped: integer,
    index: integer,
    garageName: string,
    isJobGarage: boolean?
)

leaveVehicleAnimation

Function to start an animation for ped, leaving a vehicle

function functions.leaveVehicleAnimation(
    playerPed: integer,
    vehicle: integer
): boolean?

createRemovePoints

Function that creates the store vehicle points for each garage

function functions.createRemovePoints()

getFreeSpawnPoint

Function to check if there's a free spawn point in given array of spawn points

function functions.getFreeSpawnPoint(spawnCoords: vector4[]): vector4?
PreviousHRGaragesVehicleInfoNextExports

Last updated 28 days ago