2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [OfficeAPI](./bitburner.officeapi.md) > [hireEmployee](./bitburner.officeapi.hireemployee.md)
|
|
|
|
|
|
|
|
## OfficeAPI.hireEmployee() method
|
|
|
|
|
|
|
|
Hire an employee.
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
2023-01-02 19:18:02 +01:00
|
|
|
hireEmployee(divisionName: string, city: CityName | `${CityName}`, employeePosition?: CorpEmployeePosition): boolean;
|
2022-10-21 17:16:00 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| divisionName | string | Name of the division |
|
2022-12-30 02:28:53 +01:00
|
|
|
| city | [CityName](./bitburner.cityname.md) \| \`${[CityName](./bitburner.cityname.md)<!-- -->}\` | Name of the city |
|
2023-02-11 19:18:50 +01:00
|
|
|
| employeePosition | [CorpEmployeePosition](./bitburner.corpemployeeposition.md) | _(Optional)_ Position to place into. Defaults to "Unassigned". |
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2022-11-20 18:07:22 +01:00
|
|
|
boolean
|
2022-10-21 17:16:00 +02:00
|
|
|
|
2022-11-20 18:07:22 +01:00
|
|
|
True if an employee was hired, false otherwise
|
2022-10-21 17:16:00 +02:00
|
|
|
|