This guide explains how to configure job-specific settings and the various locations used in the mining system. Follow the steps below to customize these aspects according to your server's needs.
Job Configuration
The job configuration determines which players or roles can interact with the mining system. If you want the mining system to be restricted to specific jobs, you can enable it as follows:
1
Enable Job Requirement
Set Config.RequireJob to true to restrict access to players with specific jobs.
Config.RequireJob =true
2
Specify Allowed Jobs
In the Config.MinerJob section, list the jobs that are allowed to interact with the mining system. Set each job to true for access.
Config.MinerJob = { ['miner'] =true, -- Only players with the "miner" job can access-- ['jobname'] = true, -- Add additional jobs here}
3
Disable Job Requirement
If you want all players to access the mining system, set Config.RequireJob to false.
Config.RequireJob =false
Locations Configuration
The mining system allows for various key locations such as mining zones, NPC interactions, and item purchase spots. Below is a breakdown of these locations and how to configure them.
1
Mining Zone
Defines the main mining area where players can collect minerals.
Key Settings:
public: Set to true if all players should see the blip on the map.
coords: The coordinates for the mining zone.
details: Configure blip settings such as name, sprite, size, color, and display options.
Example Configuration:
Config.Locations.miningZone = { public =true, coords = { x =2943.91, y =2747.42, z =43.33 }, details = { name ='Mining Zone', sprite =762, size =1.0, color =10, display =2 }}
2
Ped Locations
Configure NPCs for interaction within the mining system.
Ped Manager (General Interaction):
Location: Handles general management for the mining system.