# FAQ

### Rocks are not spawning

Make sure you are inside the mining area radius. Check the coordinates in Config.MiningAreas. Try increasing the radius value.

### NPC is not showing

NPCs spawn after the player fully loads. Wait 10-15 seconds after joining the server. The NPC check runs every 5 seconds.

### Items not going to inventory

Make sure all items are added to your inventory system. Check ox\_inventory/data/items.lua or qb-core/shared/items.lua. Restart both the inventory resource and the mining resource.

### Events not working

Check Config.Events in config.lua. Make sure enabled = true for the event you want. Event intervals are in milliseconds. 1000ms = 1 second 60000ms = 1 minute 3600000ms = 1 hour

### How to change language

Open shared/config.lua and change: Config.Locale = 'tr' for Turkish Config.Locale = 'en' for English

### How to add more mining areas

Add a new entry to Config.MiningAreas table. Each area needs coords, radius, rocks count, and blip settings.

### How to add more ore types

Add a new entry to Config.Ores table. Make sure all chances add up to 100. Add the item to your inventory system. Add a processing recipe if needed. Add a sell price if needed.

### How to change pickaxe prices

Edit Config.PickaxePrices in config.lua. Each pickaxe has item name, label, price, and description.

### Performance issues

The script uses 0.00ms when idle. Rocks only spawn when a player enters the mining area. Rocks despawn when the player leaves. NPC checks run every 5 seconds with distance culling.

### Discord webhook not working

Make sure Config.Webhook contains a valid Discord webhook URL. Set it to empty string to disable: Config.Webhook = ""


---

# 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://elena-scripts.gitbook.io/elenascripts/jobs-and-activities/mining-job/faq.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.
