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

# PixelHunters

## Requirements

* **FiveM Server** with OneSync enabled
* **oxmysql** (required dependency)
* **ox\_lib** (required dependency)
* **Phone**: One of the following:
  * [lb-phone](https://lbphone.com/) (v1.8+)
  * [GKSPHONE v2](https://gkshop.org/)
  * [ySeries](https://www.yflip-phone.com/)
  * [lb-tablet](https://lbscripts.com/)
  * [17mov\_Phone](https://17movement.net/products/17mov_phone)
* **Framework** (optional): ESX, QBCore, or standalone

## Installation

{% stepper %}
{% step %}

### Step 1 — Database

Run the `sql/install.sql` file in your database using [HeidiSQL](https://www.heidisql.com/).
{% endstep %}

{% step %}

### Step 2 — Install Resource

1. Place the `portis-pixelhunters` folder in your server's `resources/` directory.
2. Add to your `server.cfg`:

```cfg
ensure oxmysql
ensure ox_lib
ensure lb-phone
ensure portis-pixelhunters
```

Make sure `portis-pixelhunters` starts **after** your phone resource and framework.
{% endstep %}

{% step %}

### Verify

1. Start your server
2. Check console for: `[PixelHunters] Resource started successfully`
3. Open your phone in-game — PixelHunters should appear in the app list
4. Open the app — after \~30 seconds, nearby spawns should appear
   {% endstep %}
   {% endstepper %}

## Configuration <a href="#step-5--configuration" id="step-5--configuration"></a>

Edit files in the `config/` folder to customize:

* `config.lua` — General settings, rate limits, economy
* `species.lua` — Creature definitions, stats, evolution chains
* `items.lua` — Net types, bait, prices
* `spawns.lua` — Spawn zones, biome weights, timings
* `badges.lua` — Achievement definitions
* `quests.lua` — Daily & weekly contract definitions

## Custom Creatures

You can add your own creatures or modify existing ones:

1. Add a new entry to `config/species.lua` with your creature's name, type, stats, and evolution chain
2. Drop an SVG file into `ui/public/img/species/` matching the `sprite` field
3. Restart the resource

```lua
-- Example entry in config/species.lua
[46] = {
    name          = 'MyCreature',
    type          = 'fire',
    rarity        = 'common',
    baseCatchRate = 0.60,
    fleeRate      = 0.20,
    candyToEvolve = 25,
    evolvesTo     = nil,
    xpReward      = 100,
    candyPerCatch     = 3,
    candyPerDuplicate = 1,
    sprite        = 'mycreature.svg',
},
```


---

# 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://portis-store.gitbook.io/portis-store-docs/pixelhunters.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.
