# Events & Exports

Available exports and events for the Lite Jobs Pack. Use these to integrate with other scripts.

***

## Client Exports

### Job Management

```lua
-- Get the current active job ID
exports['tw-litejobpack']:GetCurrentJobId()

-- Get the player's level for the current job
exports['tw-litejobpack']:GetPlayerJobLevel()

-- Check if a job is currently active
exports['tw-litejobpack']:IsJobActive()

-- Open the job menu programmatically
exports['tw-litejobpack']:OpenJobMenu()

-- Start a break session
exports['tw-litejobpack']:StartBreakSession()

-- End a break session
exports['tw-litejobpack']:EndBreakSession()
```

### Vehicle System

```lua
-- Spawn a job vehicle
exports['tw-litejobpack']:SpawnJobVehicle()

-- Get the current job vehicle entity
exports['tw-litejobpack']:GetJobVehicle()

-- Cleanup the job vehicle
exports['tw-litejobpack']:CleanupJobVehicle()

-- Open/close vehicle doors
exports['tw-litejobpack']:OpenVehicleDoors()
exports['tw-litejobpack']:CloseVehicleDoors()
```

### Trunk & Tool System

```lua
-- Get available tool from trunk
exports['tw-litejobpack']:GetAvailableTool()

-- Take/return tools from trunk
exports['tw-litejobpack']:TakeToolFromTrunk()
exports['tw-litejobpack']:ReturnToolToTrunk()

-- Add/remove items from trunk
exports['tw-litejobpack']:AddItemToTrunk()
exports['tw-litejobpack']:RemoveItemFromTrunk()
```

### Blip System

```lua
-- Create various blip types
exports['tw-litejobpack']:CreateJobBlip()
exports['tw-litejobpack']:CreateEntityBlip()
exports['tw-litejobpack']:CreateRouteBlip()

-- Remove blips
exports['tw-litejobpack']:RemoveBlip()
exports['tw-litejobpack']:RemoveJobBlips()
```

### Animation & Model Utilities

```lua
-- Animation dictionary management
exports['tw-litejobpack']:LoadAnimDict(dict)
exports['tw-litejobpack']:UnloadAnimDict(dict)
exports['tw-litejobpack']:PreloadAnimDicts(dicts)

-- Model management
exports['tw-litejobpack']:LoadModel(model)
exports['tw-litejobpack']:ReleaseModel(model)
exports['tw-litejobpack']:PreloadModels(models)
```

***

## Server Exports

### Player Data

```lua
-- Get player's job data
exports['tw-litejobpack']:GetPlayerJobData(source)

-- Get player's quests
exports['tw-litejobpack']:GetPlayerQuests(source)

-- Track quest action
exports['tw-litejobpack']:TrackQuestAction(source, action)
```

### Rewards

```lua
-- Reward XP to a player
exports['tw-litejobpack']:RewardJobXP(source, amount)

-- Reward money to a player
exports['tw-litejobpack']:RewardJobMoney(source, amount)
```

### Lobby & Leaderboard

```lua
-- Get the active lobby for a player
exports['tw-litejobpack']:GetActiveLobby(source)

-- Get the leaderboard data
exports['tw-litejobpack']:GetLeaderboard()

-- Update leaderboard entry
exports['tw-litejobpack']:updateLeaderboard(data)
```

***

## Job-Specific Exports

### Miner

```lua
exports['tw-litejobpack']:GetMinerState()
exports['tw-litejobpack']:StartScaleDUI()
exports['tw-litejobpack']:UpdateScaleDisplay()
```

### Forklift

```lua
exports['tw-litejobpack']:InitializeForklift()
exports['tw-litejobpack']:RaiseForkliftFork()
exports['tw-litejobpack']:GetForkliftPalletEntity()
```

### Cleaner

```lua
exports['tw-litejobpack']:GetCleanerState()
```

### Hunting

```lua
exports['tw-litejobpack']:GetHuntingState()
```

### Warehouse

```lua
exports['tw-litejobpack']:GetWarehouseState()
```

***

## Need Help?

{% hint style="info" %}
Need help with exports or integration? Join our [Discord server](https://discord.gg/tworst) and open a support ticket.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tworst.com/getting-started-installation/scripts/lite-jobs-pack/events-exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
