# HRGaragesClientFunctions

## Fields

### setUIStatus

Function to set HRGarages UI status

```lua
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

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

## leaveVehicleAnimation

Function to start an animation for ped, leaving a vehicle

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

## createRemovePoints

Function that creates the store vehicle points for each garage

```lua
function functions.createRemovePoints()
```

## getFreeSpawnPoint

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

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