-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.lua
79 lines (74 loc) · 2.69 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
Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.VersionChecker = true
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
Config.Notification = function(source, message, typ)
if IsDuplicityVersion() then -- serverside
exports.msk_core:Notification(source, 'AI Taxi', message, typ)
else -- clientside
exports.msk_core:Notification('AI Taxi', message, typ)
end
end
----------------------------------------------------------------
-- If set to 'Standalone' then you have to add your own functions in server.lua
Config.Framework = 'ESX' -- Set to 'ESX', 'QBCore' or 'Standalone'
----------------------------------------------------------------
-- For ESX you'll need esx_addonaccount for that!
-- For QBCore you'll need qb-banking for that!
Config.Society = {
enable = false, -- Set false if you don't want that the Price will be added to a society account
account = 'society_taxi'
}
----------------------------------------------------------------
-- If you deactivate the command, you can still use the export: exports.msk_aitaxi:callTaxi()
Config.Command = {
enable = true,
command = 'callTaxi'
}
Config.AbortTaxiDrive = {
enable = true,
command = 'abortTaxi',
hotkey = 'X'
}
Config.SpawnRadius = 200.0 -- default: 200.0 meters // Do not set more than 200.0!
Config.DrivingStyle = 786731 -- default: 786731 // https://vespura.com/fivem/drivingstyle/
Config.SpeedType = 3.6 -- kmh = 3.6 // mph = 2.236936
Config.SpeedZones = {
-- Speed of the Taxi in specific zones
[2] = 100, -- City / main roads
[10] = 60, -- Slow roads
[64] = 60, -- Off road
[66] = 150, -- Freeway
[82] = 150, -- Freeway tunnels
}
Config.Price = {
base = 20, -- Price for driving to your position
tick = 0.15, -- Price per tick
tickTime = 50,
color = {r = 255, g = 255, b = 255, a = 255},
position = {height = 0.90, width = 0.50}
}
Config.Jobs = {
enable = true, -- Set false to deactivate this feature
amount = 0, -- Maximum players online in this jobs to call a taxi
jobs = {
'taxi',
'taxi2',
}
}
----------------------------------------------------------------
-- It will use a random vehicle and random pedmodel from the list below
Config.Taxi = {
vehicles = {
-- You can set different models
'taxi',
'taxi',
},
pedmodels = {
-- You can set different models
{name = 'Michael Reynold', model = 'a_m_y_stlat_01', voice = 'A_M_M_EASTSA_02_LATINO_FULL_01'},
{name = 'John Smith', model = 'a_m_y_smartcaspat_01', voice = 'A_M_M_EASTSA_02_LATINO_FULL_01'},
},
}