Delivery, fuel and NPC
Eleven Comercios config for FiveM: NPC delivery (pace, zones, customer, caps), the fuel price band used as a fallback and the model of the shop's NPC seller.
Options in eleven-comercios/config.lua for home delivery, fuel and the NPC seller. How delivery works: Home delivery.
NPC delivery
Config.Delivery:
| Key | Default | What it does |
|---|---|---|
enabled | true | Turns delivery on server-wide. |
spawnChance | 0.5 | Small random variation in when each order comes in. |
cooldown | 60 | Seconds of cooldown per employee between orders. |
maxLifetime | 600 | Seconds to deliver before the order is cancelled. |
businessTypes | { RESTAURACION = true } | Business types that receive orders. nil = any business with delivery products. |
untyped | true | Lets in businesses with no type set. |
phone.enabled | true | Phone notification for on-duty employees (with eleven-phone). |
phone.app | 'Orders' | Sender name shown in the notification. |
maxActiveGlobal | 3 | Active orders at once server-wide (soft cap). |
minItems / maxItems | 1 / 3 | Different products per order. |
maxItemQty | 3 | Max units of each product. |
maxUnitPrice | 500 | Max price per unit the NPC pays. |
zoneDistance | 250.0–2200.0 | Distance from the premises at which the delivery zone is chosen. |
Order pace
Config.Delivery.demand spreads orders out irregularly. Each business switches "mood" every so often, and within that stretch orders arrive at a base interval multiplied by a random factor:
| Key | Default | What it does |
|---|---|---|
regimeDuration | 1800–3600 s | How often the business's mood changes. |
intervalByRegime | 300–1800 s | Base interval between orders in each mood. |
jitter | 0.6–1.5 | Random factor applied to the base interval. |
Zones
| Key | What it does |
|---|---|
extraZones | Fixed delivery zones on top of the database ones: { coords = vec3(...), label = '...' }. |
seedPoints | Zones saved to the database only the first time, if the table is empty. After that they're managed with the delivery point exports. |
Customer
Config.Delivery.customer:
| Key | Default | What it does |
|---|---|---|
zoneRadius | 110.0 | Radius of the map circle and of the pedestrian search. |
adoptRange | 140.0 | At this distance from the center, the courier starts looking for the customer. |
claimTimeout | 20 | Seconds before another employee can try to find the customer. |
deliverRadius | 5.0 | Max distance to the customer to deliver. |
createFallback | true | If there are no pedestrians, create a customer on the pavement. |
fallbackAfter | 12 | Seconds searching before creating the customer. |
scenario | 'WORLD_HUMAN_STAND_MOBILE' | What the customer does while waiting. |
fallbackModels | 3 models | Models for the created customer. |
Fuel
Config.Fuel is the fallback price band for business gas stations. If the fuel script publishes its own band, that one wins; this one is only used when it doesn't.
Note
Business gas stations ship turned off: they need a fuel script with its own exports that isn't in the package (see Requirements). Without it, these values aren't used.
| Key | Default | What it does |
|---|---|---|
MinMarginPct | 0.10 | Minimum price = wholesale cost + 10 %. |
MaxMarginPct | 1.00 | Maximum price = wholesale cost × 2. |
BaseHeadroomPct | 0.10 | If the server's base price is already above the maximum, the band widens to that price + 10 %. |
NPC seller
Config.NPC:
| Key | Default | What it does |
|---|---|---|
Model | 's_m_m_linecook' | Default NPC seller model. Each business can change it from the tablet. |