> For the complete documentation index, see [llms.txt](https://docs.0resmon.org/0resmon/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.0resmon.org/0resmon/0resmon-1/frkn-resources/craftv2/export-and-events.md).

# Export and Events

#### Mission system

First of all, we need to know that we will use this event frkn-craftv2:givexp.So how will we use it? Let's say we want it to give us xp when a profession is over.This is an example of giving xp when you fill up gasoline in the frkn-fuelstation script.This is a complete example, add it where you want.As you can see at the bottom, I used the event after the process is over. Instead of the number there, you write how many xp you want it to give. Write multiples of 20 as xp, such as 20,40,60, etc. If you write something else, the system will break.

```lua
RegisterNetEvent("frkn-fuelstation:server:PayForFuel", function(amount)
    local src = source
    if not src then return end
    local player = QBCore.Functions.GetPlayer(src)
    if not player then return end
    player.Functions.RemoveMoney('bank', amount)
    TriggerServerEvent('frkn-craftv2:givexp',20) --Here it gives the player 20xp after the process is finished. You can put this in your own scripts.This is just an example
end)

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.0resmon.org/0resmon/0resmon-1/frkn-resources/craftv2/export-and-events.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
