-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfig.lua
More file actions
122 lines (118 loc) · 4.43 KB
/
config.lua
File metadata and controls
122 lines (118 loc) · 4.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
Config = {}
Config.DebugPrints = false -- Debug Prints to console (client & server).
Config.Zones = {
-- Example for this entry:
-- • 00:00–06:00 sleepy: very few peds/vehicles
-- • 06:00–18:00 busy: normal traffic & pedestrians
-- • 18:00–24:00 evening: moderate activity
downtown = {
name = "Downtown Los Santos",
points = {
vector3(532.29, -1140.31, 25.00), -- preferably the Z coordinates should be the same for all points
vector3(-291.11, -1154.06, 25.00),
vector3(54.61, 283.98, 25.00),
vector3(1239.57, -42.82, 25.00),
},
thickness = 500.0,
debug = false,
-- The `population` field is an array of:
-- { from = <hour>, to = <hour>, population = { peds, vehicles, randomVehicles, parked, scenario } }
-- Hours are in 24h format, [from, to). Schedules must cover 0–24 to avoid fallbacks.
population = {
{
from = 0,
to = 6,
population = { -- 0.0 nothing , 1.0 normal density also max amount
peds = 0.2, -- 0.0 = no pedestrians, 1.0 = normal pedestrian density (max)
vehicles = 0.1, -- 0.0 = no vehicles, 1.0 = normal vehicle traffic (max)
randomVehicles = 0.1, -- 0.0 = no “random” vehicles (e.g. pull-outs), 1.0 = normal random vehicle spawns (max)
parked = 0.1, -- 0.0 = no parked cars, 1.0 = normal number of parked vehicles (max)
scenario = 0.2, -- 0.0 = no scenario peds (ambient animations), 1.0 = normal scenario peds (max)
},
},
{
from = 6,
to = 18,
population = {
peds = 1.0,
vehicles = 1.0,
randomVehicles = 1.0,
parked = 0.8,
scenario = 1.0,
},
},
{
from = 18,
to = 24,
population = {
peds = 0.8,
vehicles = 0.6,
randomVehicles = 0.6,
parked = 0.6,
scenario = 0.7,
},
},
},
},
-- In this example we have one sub-table in the `population` array with a schedule from 0 to 24.
-- This means that the population settings will be applied all day long.
grovestreet = {
name = "Grove Street Home",
points = {
vec3(-324.41, -1648.56, 20.00),
vec3(-251.02, -1444.6, 20.00),
vec3(461.67, -2057.22, 20.00),
vec3(353.07, -2202.24, 20.00),
},
thickness = 500.0,
debug = false,
population = {
{
from = 0,
to = 24,
population = {
peds = 0.5,
vehicles = 0.4,
randomVehicles = 0.3,
parked = 0.2,
scenario = 0.5,
},
},
},
},
}
-- Fallback when no schedule matches (should rarely happen if 0–24 is covered)
Config.DefaultPopulation = {
peds = 0.7,
vehicles = 0.7,
randomVehicles = 0.7,
parked = 0.6,
scenario = 0.7,
}
-- Define all group–group relationships here
-- Each entry has: group1, group2, and the relationship value
--[[ Relationship types:
0 = Companion
1 = Respect
2 = Like
3 = Neutral
4 = Dislike
5 = Hate
255 = Pedestrians]]
Config.Relationships = {
{ group1 = "AMBIENT_GANG_HILLBILLY", group2 = "PLAYER", relationship = 1 },
{ group1 = "AMBIENT_GANG_BALLAS", group2 = "PLAYER", relationship = 1 },
{ group1 = "AMBIENT_GANG_MEXICAN", group2 = "PLAYER", relationship = 1 },
{ group1 = "AMBIENT_GANG_FAMILY", group2 = "PLAYER", relationship = 1 },
{ group1 = "AMBIENT_GANG_MARABUNTE", group2 = "PLAYER", relationship = 1 },
{ group1 = "AMBIENT_GANG_SALVA", group2 = "PLAYER", relationship = 1 },
{ group1 = "AMBIENT_GANG_LOST", group2 = "PLAYER", relationship = 1 },
{ group1 = "GANG_1", group2 = "PLAYER", relationship = 1 },
{ group1 = "GANG_2", group2 = "PLAYER", relationship = 1 },
{ group1 = "GANG_9", group2 = "PLAYER", relationship = 1 },
{ group1 = "GANG_10", group2 = "PLAYER", relationship = 1 },
{ group1 = "FIREMAN", group2 = "PLAYER", relationship = 1 },
{ group1 = "MEDIC", group2 = "PLAYER", relationship = 1 },
{ group1 = "COP", group2 = "PLAYER", relationship = 1 },
{ group1 = "PRISONER", group2 = "PLAYER", relationship = 1 },
}