ev_sitanywhere

Creating Fields in EV-Gathering
This guide will walk you through the process of creating gatherable fields in the EV-Gathering system. The system allows players to gather resources by interacting with props in the game world. Each field is fully customizable, including spawn locations, props, rewards, and requirements.
Prerequisites
EV-Gathering Installed: Ensure the EV-Gathering resource is installed on your server.
qb-core Framework: Your server must run a compatible version of qb-core.
ox_inventory: The inventory system used for item management.
Step 1: Understanding the Configuration
The Config.Gatherables table defines all gatherable fields. Each field contains settings such as props, rewards, animations, and blip information.
Example Configuration
Step 2: Adding a New Field
Step 2.1: Define the Field
Open the Configuration File Open the configuration file (
config.lua) of the EV-Gathering resource.Add a Gatherable Add a new entry in the
Config.Gatherablestable.
Field Settings Explained
Key
Description
name
Unique identifier for the field (e.g., "apple").
label
Display name for the resource (e.g., "Apple").
model
Prop model used for the field (e.g., "bkr_prop_weed_lrg_01b").
rewardItems
Table of items players can receive. Specify item, minAmount, maxAmount, and chance.
requiredItems
Items required to gather from the field (e.g., a "basket").
animation
Animation dictionary and name for the gathering action.
centerCoords
The center of the field in vector3 format.
spawnRange
Radius around the center where props will spawn.
spawnAmount
Number of props to spawn.
progressText
Text displayed during the gathering process.
progressTime
Duration of the gathering action (in milliseconds).
blip
Blip configuration for the field on the map.
Example Field Configuration
Step 3: Testing the Field
Restart the Resource Restart the EV-Gathering resource to load the new configuration.
Check the Map Verify that the blip for the field appears on the map (if enabled).
Test Gathering Visit the field, interact with the props, and confirm the gathering process works as expected.
Check Rewards Ensure that rewards are correctly added to the inventory.
Advanced Customization
Adding Custom Props
Use any prop model available in GTA V by specifying its model name in the model field.
Dynamic Rewards
Modify the rewardItems table to adjust rewards based on your server's economy.
Field Animations
Change the animation field to use different animations during gathering. For example:
Common Issues
Props Not Spawning
Ensure the model name is correct.
Verify the
centerCoordsandspawnRangevalues.
No Rewards Given
Check the
rewardItemstable for correct configuration.Verify that required items are present in the player's inventory.
Blip Not Showing
Ensure the
blip.enabledfield is set totrue.Verify the blip configuration settings (sprite, scale, color, etc.).
Last updated