-
Notifications
You must be signed in to change notification settings - Fork 21
/
config.lua
186 lines (157 loc) · 4.65 KB
/
config.lua
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
Config = {}
Config.DrawDistance = 10.0
Config.MaxErrors = 5
Config.SpeedMultiplier = 3.6
Config.SpeedingErrorDelay = 5000 --Min: 5000ms
Config.Locale = GetConvar('esx:locale', 'en')
Config.Prices = {
dmv = 500,
drive = 2500,
drive_bike = 3000,
drive_truck = 5000
}
Config.VehicleModels = {
drive = 'blista',
drive_bike = 'sanchez',
drive_truck = 'mule3'
}
Config.SpeedLimits = {
residence = 50,
town = 80,
freeway = 120
}
Config.Zones = {
DMVSchool = {
Pos = {x = 239.471, y = -1380.960, z = 32.741},
Size = {x = 1.5, y = 1.5, z = 1.0},
Color = {r = 204, g = 204, b = 0},
Type = 1
},
VehicleSpawnPoint = {
Pos = {x = 249.409, y = -1407.230, z = 30.4094, h = 317.0},
Size = {x = 1.5, y = 1.5, z = 1.0},
Color = {r = 204, g = 204, b = 0},
Type = -1
}
}
Config.CheckPoints = {
{
Pos = {x = 255.139, y = -1400.731, z = 29.537},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('next_point_speed', Config.SpeedLimits['residence']), 5000)
end
},
{
Pos = {x = 271.874, y = -1370.574, z = 30.932},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('go_next_point'), 5000)
end
},
{
Pos = {x = 234.907, y = -1345.385, z = 29.542},
Action = function(playerPed, vehicle, setCurrentZoneType)
CreateThread(function()
DrawMissionText(TranslateCap('stop_for_ped'), 5000)
PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true)
FreezeEntityPosition(vehicle, true)
Wait(4000)
FreezeEntityPosition(vehicle, false)
DrawMissionText(TranslateCap('good_lets_cont'), 5000)
end)
end
},
{
Pos = {x = 217.821, y = -1410.520, z = 28.292},
Action = function(playerPed, vehicle, setCurrentZoneType)
setCurrentZoneType('town')
CreateThread(function()
DrawMissionText(TranslateCap('stop_look_left', Config.SpeedLimits['town']), 5000)
PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true)
FreezeEntityPosition(vehicle, true)
Wait(6000)
FreezeEntityPosition(vehicle, false)
DrawMissionText(TranslateCap('good_turn_right'), 5000)
end)
end
},
{
Pos = {x = 178.550, y = -1401.755, z = 27.725},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('watch_traffic_lightson'), 5000)
end
},
{
Pos = {x = 113.160, y = -1365.276, z = 27.725},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('go_next_point'), 5000)
end
},
{
Pos = {x = -73.542, y = -1364.335, z = 27.789},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('stop_for_passing'), 5000)
PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true)
FreezeEntityPosition(vehicle, true)
Wait(6000)
FreezeEntityPosition(vehicle, false)
end
},
{
Pos = {x = -355.143, y = -1420.282, z = 27.868},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('go_next_point'), 5000)
end
},
{
Pos = {x = -439.148, y = -1417.100, z = 27.704},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('go_next_point'), 5000)
end
},
{
Pos = {x = -453.790, y = -1444.726, z = 27.665},
Action = function(playerPed, vehicle, setCurrentZoneType)
setCurrentZoneType('freeway')
DrawMissionText(TranslateCap('hway_time', Config.SpeedLimits['freeway']), 5000)
PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true)
end
},
{
Pos = {x = -463.237, y = -1592.178, z = 37.519},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('go_next_point'), 5000)
end
},
{
Pos = {x = -900.647, y = -1986.28, z = 26.109},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('go_next_point'), 5000)
end
},
{
Pos = {x = 1225.759, y = -1948.792, z = 38.718},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('go_next_point'), 5000)
end
},
{
Pos = {x = 1225.759, y = -1948.792, z = 38.718},
Action = function(playerPed, vehicle, setCurrentZoneType)
setCurrentZoneType('town')
DrawMissionText(TranslateCap('in_town_speed', Config.SpeedLimits['town']), 5000)
end
},
{
Pos = {x = 1163.603, y = -1841.771, z = 35.679},
Action = function(playerPed, vehicle, setCurrentZoneType)
DrawMissionText(TranslateCap('gratz_stay_alert'), 5000)
PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', false, 0, true)
end
},
{
Pos = {x = 235.283, y = -1398.329, z = 28.921},
Action = function(playerPed, vehicle, setCurrentZoneType)
ESX.Game.DeleteVehicle(vehicle)
end
}
}