> For the complete documentation index, see [llms.txt](https://lunar-scripts.gitbook.io/lunar-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lunar-scripts.gitbook.io/lunar-scripts/paid-scripts/lunar_jobscreator/exports.md).

# Exports

## Exports - Client

**`addActionsCategory`**- Adds a new option to F6 job menu.

```lua
exports['lunar_jobscreator']:addActionsCategory({
    name = 'objects',
    label = 'Objects',
    icon = 'cone',
    onSelect = function()
        -- Open your menu here
    end
})
```

**`removeActionsCategory`**- Removes a option from F6 job menu.

```lua
exports['lunar_jobscreator']:removeActionsCategory(name) -- Pass the category name in
```

**`isCuffed`**- Returns true if the localplayer is handcuffed.

```lua
exports['lunar_jobscreator']:isCuffed()
```

**`isDragged`** - Returns true if the localplayer is dragged.

```lua
exports['lunar_jobscreator']:isDragged()
```

**`steal` - Opens the target player inventory.**

```lua
exports['lunar_jobscreator']:steal(targetPed) -- Pass in the target player ped 
```

**`handcuff`** - Handcuffs the player with handcuffs/zipties.

<pre class="language-lua"><code class="lang-lua"><strong>exports['lunar_jobscreator']:handcuff(targetPed) -- Pass in the target player ped 
</strong></code></pre>

**`drag`** - Drag the handcuffed player.

```lua
if IsPedCuffed(targetPed) then -- Check if the target ped is handcuffed
    exports['lunar_jobscreator']:drag(targetPed) -- Pass in the target player ped
end
```

**`carry`** - Used to carry a player on your shoulder.

```lua
exports['lunar_jobscreator']:carry(targetPed) -- Pass in the target player ped
```

**`put_in_vehicle`**- Puts the dragged player to the target vehicle.

```lua
exports['lunar_jobscreator']:put_in_vehicle(vehicle) -- Pass the target vehicle
```

**`out_the_vehicle`**- Takes the last cuffed player out of the vehicle.

```lua
exports['lunar_jobscreator']:out_the_vehicle(vehicle) -- Pass the target vehicle
```

**`hijack`**- Unlocks the target vehicle.

```lua
exports['lunar_jobscreator']:hijack(vehicle) -- Pass the target vehicle
```

**`repair`**- Repairs the target vehicle.

```lua
exports['lunar_jobscreator']:repair(vehicle) -- Pass the target vehicle
```

**`clean`**- Cleans the target vehicle.

```lua
exports['lunar_jobscreator']:clean(vehicle) -- Pass the target vehicle
```

**`impound`**- Impounds the target vehicle (Deletes it basically)

```lua
exports['lunar_jobscreator']:impound(vehicle) -- Pass the target vehicle
```

## Exports - Server

**`uncuff`**- Uncuffs the target player.

```lua
exports['lunar_jobscreator']:uncuff(targetId) -- Pass the player server ID
```

**`getVehicleFromDatabase`**- Fetches the vehicle from the lunar\_unijob\_vehicles table. More info in config/sv\_edit.lua

```lua
exports['lunar_jobscreator']:getVehicleFromDatabase(plate) -- Pass the vehicle plate
```

**`setJobGradeSalary`**- Sets the grade's salary and saves it into the database.

```lua
exports['lunar_jobscreator']:setJobGradeSalary(jobName, gradeIndex, amount) -- Pass the vehicle plate
```
