forked from Simnation/Main
.. | ||
stream | ||
.fxap | ||
client.lua | ||
config.lua | ||
coords.txt | ||
fxmanifest.lua | ||
prompt_barber_new.xml | ||
README.md |
Prompt Barber - Interior Configuration
This resource provides configurable barber shop interiors for FiveM servers with the ability to enable or disable specific locations.
Configuration
All settings can be found in config.lua
. You can enable or disable interiors for each barber shop location by changing the enabled
value to true
or false
.
Available Locations
Location | Coordinates | Default Status |
---|---|---|
Paleto Bay | -278.32, 6228.18, 30.71 | Enabled |
Downtown | -33.02, -152.32, 56.09 | Enabled |
Vespucci | -1282.87, -1117.28, 6.01 | Enabled |
Mirror Park | 1212.29, -472.81, 65.22 | Enabled |
Davis (Ghetto) | 136.94, -1708.16, 28.31 | Enabled |
Sandy Shores | 1931.79, 3730.24, 31.86 | Enabled |
How to Configure
- Open
config.lua
- Find the location you want to modify
- Change
enabled = true
toenabled = false
to disable the interior - Change
enabled = false
toenabled = true
to enable the interior - Restart the resource
Example:
-- To disable the Paleto Bay barber shop interior:
paleto = {
enabled = false, -- Changed from true to false
coords = vector3(-278.324158, 6228.18164, 30.7110977),
interior_type = 'v_barbers'
},
Debug Mode
You can enable debug mode to see console messages about which interiors are being enabled/disabled:
Config.Debug = true -- Set to true to enable debug messages
Console Commands (Debug)
When debug mode is enabled, you can use the following console command:
togglebarber <location>
- Toggle a specific location's interior on/off
Available location names: paleto
, city
, vespucci
, mirror_park
, ghetto
, sandy
Example:
togglebarber paleto -- Toggles Paleto Bay barber interior
togglebarber city -- Toggles Downtown barber interior
Installation
- Place the resource in your
resources
folder - Add
ensure prompt_barber
to yourserver.cfg
- Configure the locations in
config.lua
as needed - Restart your server
Notes
- Interiors are managed automatically when the resource starts
- Changes to the config require a resource restart to take effect
- Disabling an interior will make it inaccessible to players
- All locations are enabled by default
Troubleshooting
If you're having issues:
- Enable debug mode in
config.lua
(Config.Debug = true
) - Check console for any error messages
- Ensure coordinates are correct for your map files
- Restart the resource after making config changes