forked from Musiker15/msk_givevehicle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
56 lines (51 loc) · 2.14 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
Config = {}
----------------------------------------------------------------
Config.Locale = 'de'
Config.VersionChecker = true
Config.Debug = true
----------------------------------------------------------------
-- !!! This function is clientside AND serverside !!!
Config.Notification = function(source, xPlayer, message)
if IsDuplicityVersion() then -- serverside
xPlayer.showNotification(message)
else -- clientside
ESX.ShowNotification(message)
end
end
----------------------------------------------------------------
Config.AdminGroups = {'superadmin', 'admin'} -- You can set multiple groups
-- Ingame Commands
Config.Command = 'giveveh' -- Read the Readme.md for Command Usage
Config.Command2 = 'delveh' -- Read the Readme.md for Command Usage
Config.Command3 = 'givejobveh' -- Read the Readme.md for Command Usage
Config.Command4 = 'spawnveh' -- Read the Readme.md for Command Usage // You can use this at the console too
-- Console Commands
Config.ConsoleCommand = '_giveveh' -- Read the Readme.md for Command Usage
Config.ConsoleCommand2 = '_delveh' -- Read the Readme.md for Command Usage
Config.ConsoleCommand3 = '_givejobveh' -- Read the Readme.md for Command Usage
----------------------------------------------------------------
Config.FuelSystem = function(vehicle, fuelLevel) -- Only for Command4: spawnveh
-- LegacyFuel
exports['LegacyFuel']:SetFuel(vehicle, fuelLevel)
-- FiveM Native
-- SetVehicleFuelLevel(vehicle, fuelLevel)
end
Config.Plate = {
format = 'XXX XXX', -- 'XXX XXX' or 'XX XXXX'
enablePrefix = true, -- Set to false if you want Random Letters
prefix = 'PX' -- Only if format = 'XX XXXX' // Looks like 'PX 1234'
}
----------------------------------------------------------------
-- You can give Player an Item and they can use the Item to get a Vehicle
Config.Vehicles = {
["zentorno"] = { -- Item Name
label = 'Zentorno',
model = 'zentorno', -- Vehicle Name
categorie = 'car' -- Vehicle Categorie
},
["seashark"] = { -- Item Name
label = 'Seashark',
model = 'seashark', -- Vehicle Name
categorie = 'boat' -- Vehicle Categorie
},
}