forked from WolfKnight98/wk_wars2x
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.dist.lua
More file actions
179 lines (140 loc) · 5.94 KB
/
config.dist.lua
File metadata and controls
179 lines (140 loc) · 5.94 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
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
--[[---------------------------------------------------------------------------------------
Wraith ARS 2X
Created by WolfKnight
For discussions, information on future updates, and more, join
my Discord: https://discord.gg/fD4e6WD
MIT License
Copyright (c) 2020-2021 WolfKnight
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---------------------------------------------------------------------------------------]]--
-- Do not touch this
CONFIG = {}
-- Radar fast limit locking
-- When enabled, the player will be able to define a fast limit within the radar's menu, when a vehicle
-- exceeds the fast limit, it will be locked into the fast box. Default setting is disabled to maintain realism
CONFIG.allow_fast_limit = true
-- Radar fast limit menu order
-- When enabled, the fast limit options menu will be displayed first followed by fast lock toggle, then all default menu options.
CONFIG.fast_limit_first_in_menu = false
-- Radar only lock players with auto fast locking
-- When enabled, the radar will only automatically lock a speed if the caught vehicle has a real player in it.
CONFIG.only_lock_players = false
-- In-game first time quick start video
-- When enabled, the player will be asked if they'd like to view the quick start video the first time they
-- open the remote.
CONFIG.allow_quick_start_video = true
-- Allow passenger view
-- When enabled, the front seat passenger will be able to view the radar and plate reader from their end.
CONFIG.allow_passenger_view = false
-- Allow passenger control
-- Dependent on CONFIG.allow_passenger_view. When enabled, the front seat passenger will be able to open the
-- radar remote and control the radar and plate reader for themself and the driver.
CONFIG.allow_passenger_control = false
-- Enable doppler audio/effects
-- When disabled, all doppler functionality (audio, menu options, etc.) is removed.
CONFIG.enable_doppler = true
-- Set this to true if you use Sonoran CAD with the WraithV2 plugin
CONFIG.use_sonorancad = true
-- Sets the defaults of all keybinds
-- These keybinds can be changed by each person in their GTA Settings->Keybinds->FiveM
CONFIG.keyDefaults =
{
-- Remote control key
remote_control = "f5",
-- Radar key lock key
key_lock = "l",
-- Radar front antenna hold toggle
front_state = "",
-- Radar rear antenna hold toggle
rear_state = "",
-- Radar front antenna lock/unlock Key
front_lock = "numpad8",
-- Radar rear antenna lock/unlock Key
rear_lock = "numpad5",
-- Plate reader front lock/unlock Key
plate_front_lock = "numpad9",
-- Plate reader rear lock/unlock Key
plate_rear_lock = "numpad6"
}
-- Here you can change the default values for the operator menu, do note, if any of these values are not
-- one of the options listed, the script will not work.
CONFIG.menuDefaults =
{
-- Should the system calculate and display faster targets
-- Options: true or false
["fastDisplay"] = true,
-- Sensitivity for each radar mode, this changes how far the antennas will detect vehicles
-- Options: 0.2, 0.4, 0.6, 0.8, 1.0
["same"] = 0.6,
["opp"] = 0.6,
-- The volume of the audible beep
-- Options: 0.0, 0.2, 0.4, 0.6, 0.8, 1.0
["beep"] = 0.6,
-- The volume of the verbal lock confirmation
-- Options: 0.0, 0.2, 0.4, 0.6, 0.8, 1.0
["voice"] = 0.6,
-- The volume of the plate reader audio
-- Options: 0.0, 0.2, 0.4, 0.6, 0.8, 1.0
["plateAudio"] = 0.6,
-- The volume of the doppler audio
-- Options: 0.0, 0.02, 0.03, 0.04, 0.05, 0.6
["dopAud"] = 0.02,
-- Antenna to play doppler audio on.
-- Option: 1-front, 2-rear, 3-both
["dopDirection"] = 3,
-- The speed unit used in conversions
-- Options: mph or kmh
["speedType"] = "mph",
-- The state for automatic speed locking. This requires CONFIG.allow_fast_limit to be true.
-- Options: true or false
["fastLock"] = false,
-- The speed limit required for automatic speed locking. This requires CONFIG.allow_fast_limit to be true.
-- Options: 0 to 200
["fastLimit"] = 60
}
-- Here you can change the default scale of the UI elements, as well as the safezone size
CONFIG.uiDefaults =
{
-- The default scale of the UI elements.
-- Options: 0.25 - 2.5
scale =
{
radar = 0.75,
remote = 0.75,
plateReader = 0.75
},
-- The safezone size, must be a multiple of 5.
-- Options: 0 - 100
safezone = 20
}
-- Here you can set the vehicle classes that you do not want to be detected by the radar
CONFIG.blacklist =
{
enable = true, -- Set to false to disable the blacklist
-- Add the vehicle classes to the blacklist here | https://wiki.rage.mp/index.php?title=Vehicle_Classes
classes =
{
22, -- Open Wheel
13, -- Cycles
14, -- Boats
15, -- Helicopters
16 -- Planes
}
}
-- Enable realistic plate scanning - When you are traveling towards a vehicle that does not have a front/back plate the plate reader will not be able to scan it
CONFIG.realisticPlateScanning = false -- Set to false to disable realistic plate scanning
CONFIG.noPlateValue = "NO PLATE" -- The value that will be displayed when a vehicle does not have a plate or is a blacklisted vehicle class