# Events & Exports

## Server Events <a href="#server-events" id="server-events"></a>

**rm\_houserobbery:server:createJob**

```lua
---@class StartOptions
---@field ignorePoliceCount? boolean   -- should the number of police officers be ignored?
---@field ignorePlayerCooldown? boolean  -- should the player cooldown be ignored?
---@field ignoreGlobalCooldown? boolean  -- should the global cooldown be ignored?

---@param targetPlayerServerId? number
---@param options? StartOptions
RegisterNetEvent('rm_houserobbery:server:createJob', function(targetPlayerServerId, options) end)
```

| Key                   | Type    | Description                                      |
| --------------------- | ------- | ------------------------------------------------ |
| ignorePoliceCount?    | boolean | Should the number of police officers be ignored? |
| ignorePlayerCooldown? | boolean | Should the player cooldown be ignored?           |
| ignoreGlobalCooldown? | boolean | Should the global cooldown be ignored?           |

**rm\_houserobbery:server:cancelJob**

```lua
---@param targetPlayerServerId? number
RegisterNetEvent('rm_houserobbery:server:cancelJob', function(targetPlayerServerId) end)
```

```
## Notes:
- If triggered from the client, _source is not required; if triggered from the server, it must be provided. 
- To disable the event, set cfg.disableServerEvent = true.
```

## Exports <a href="#exports" id="exports"></a>

### Server Exports <a href="#server-exports" id="server-exports"></a>

**setLockdown**

```lua
exports.rm_houserobbery:setLockdown(state--[[boolean]])
```

**getLockdown**

```lua
exports.rm_houserobbery:getLockdown()
--Example:
exports.rm_houserobbery:setLockdown(true)
local disabled = exports.rm_houserobbery:getLockdown()
print(disabled)
```
