Basic Configuration
PD Wash Configuration Documentation
This document explains the configuration options in shared/config.lua
and how they affect the police department car wash and factory management system.
Core Settings
Basic Configuration
Config.devMode
- Enables debug mode for developmentConfig.Framework
- Framework type (currently "qb" for QBCore)Config.CheckInterval
- Main loop interval (5 seconds)Config.GridSize
- Size of grid cells for organizing factories (130 units)
Money System
Config.DirtyMoneyItems
- Items that count as dirty money for washingConfig.useFrameworkBlackMoney
- Use framework's black money system
Update Intervals
Config.CoolingUpdateInterval
- Temperature/cooling calculation frequency (10 seconds)Config.CleaningUpdateInterval
- Money washing cycle frequency (10 seconds)Config.FuelUpdateInterval
- Generator fuel consumption frequency (10 seconds)Config.HealthUpdateInterval
- Machine health degradation frequency (150 seconds)
Factory System
Factory Creation
Config.Creator
- Command and job required to create factoriesCommand
: "createfactory"Job
: "realestate"
Factory Types
Each factory type has specific properties:
model
- 3D model name for the factory shelloffset
- Position offset from player when creatingmaxLadderHeight
- Maximum ladder height allowed in this factory type
Factory Types:
Small: Basic shell, 1.0 max ladder height
Medium: Intermediate shell, 1.5 max ladder height
Large: Advanced shell, 4.2 max ladder height
Factory Management
Config.FactoryManagement.computerOffset
- Computer terminal positions for each factory typeConfig.GetPlayerGang
- Function to get player's gang for access control
Machine Systems
Washers
Each washer type has:
item
- Inventory item nameprop
- 3D model when activeemptyProp
- 3D model when inactivelabel
- Display nameproductionPerHour
- Money washing ratemaxMoney
- Maximum money capacitybaseTemperature
- Base operating temperaturehealthDegradePerHour
- Health degradation rateminEngineHealth
- Minimum health to functionspawnOffset
- Z-axis positioning offset
Washer Types:
Small: 1000/hr production, 5000 max money, 30°C base temp
Medium: 2000/hr production, 10000 max money, 35°C base temp
Large: 3000/hr production, 15000 max money, 50°C base temp
Fans
Each fan type has:
usagePerHour
- Power consumption ratecoverageRadius
- Cooling effect rangecooling
- Cooling values for each mode (ECO/MAX/OFF)power
- Power consumption for each modedefaultState
- Default operating mode
Fan Types:
Small: 8.0m radius, 10 usage/hr, ECO:7°C/MAX:12°C cooling
Big: 10.0m radius, 20 usage/hr, ECO:16°C/MAX:22°C cooling
Generators
Each generator type has:
maxFuelCapacity
- Maximum fuel storagemaxConnections
- Maximum machines it can powerfuelPerCan
- Fuel added per petrol canusagePerHour
- Fuel consumption rate
Generator Types:
Small: 100 fuel capacity, 15 max connections, 10 usage/hr
Big: 200 fuel capacity, 30 max connections, 20 usage/hr
Control Panel
Config.Control.controlDistance
- Maximum range to detect machines (50 units)
Temperature System
Heat Generation
Config.HeatGeneration.washers
- Heat produced by each washer type when runningSmall: +10°C, Medium: +15°C, Large: +25°C
Base Temperature
Config.Temperature.default
- Default temperature (40°C)
Ladder System
Ladder Configuration
item
- Inventory item name ("mw_ladder")placeButton
- Key to place ladder (E)climbUpButton
- Key to climb up (W)climbDownButton
- Key to climb down (S)pickupButton
- Key to pickup ladder (F)foldButton
- Key to fold ladder (G)togglePreviewButton
- Key to toggle preview (Y)
Item Management
Removal Settings
Config.Removing
- Items returned to inventory when machines are removedwasher, generator, fan, control: true
Blip System
Factory Blips
Config.FactoryBlips.enabled
- Enable/disable factory blips on mapdefaultSprite/Color/Scale/Label
- Default blip appearancetypes
- Blip settings per factory type:Small: Sprite 40, Color 2 (green), Scale 0.8
Medium: Sprite 40, Color 3 (blue), Scale 0.9
Large: Sprite 40, Color 4 (red), Scale 1.0
Shop System
Shop Configuration
Config.Shop.enabled
- Enable/disable repair shoplocation
- Shop coordinates and ped settingsblip
- Map blip settings for shop location
Shop Items
Each item has:
id/name/description
- Item identificationprice
- Cost in dollarsstock
- Available quantitycategory
- Item category (washers/fans/generators/other)quality
- Item quality level (basic/advanced/professional)repairPercent
- Health restored when used (repair items only)
Categories:
Washers: Small/Medium/Large washers + motor repair kits
Fans: Small/Big fans + fan repair components
Generators: Small/Big generators + turbine repair parts
Other: Ladders, control panels
Repair Items:
Basic: 20-30% health restoration
Advanced: 55-70% health restoration
Professional: 100% health restoration
Key Features
Factory Access Control
Personal ownership with keyholder system
Gang-based access
Distance-based factory creation limits (20 units minimum)
Temperature Management
Dynamic heat generation based on washer activity
Fan cooling system with coverage radius
Health-based machine functionality
Power System
Generator fuel consumption
Machine linking and power distribution
Fuel can refueling system
Repair System
Machine health degradation over time
Repair items restore functionality
Health-based access restrictions
UI Integration
Real-time machine status updates
Factory management computer terminals
Shop interface with categories and quality levels
Last updated