-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.lua
84 lines (74 loc) · 2.73 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
Config = {}
Config.RefoundPrice = 250
Config.FrameWork = "ESX" -- ESX or QBCore
Config.TrailerShop = {
[1] ={
npccoords = vector3(-247.51, 6213.35, 31.94),
heading = 120.0,
ped = 'a_f_m_downtown_01',
job = 'none',
trailertobuy = {
{label = 'Boat Trailer', name = 'boattrailer', price = 250, coordsspawn = vector3(-251.8, 6223.12, 31.49), heading = 311.34},
{label = 'Car Trailer', name = 'trailersmall', price = 250, coordsspawn = vector3(-251.09, 6223.35, 32.49), heading = 311.34}
}
},
}
Config.VehicleCanTrail = {
{name = 'GUARDIAN', class = {8}},
{name = 'SQUADDIE', class = {8}},
{name = 'BENSON', class = {8}},
{name = 'EVERON', class = {8}},
{name = 'TITAN', class = {8}},
{name = 'SANDKING', class = {8}},
{name = 'SANDKIN2', class = {8}},
{name = 'DUBSTA3', class = {8}},
{name = 'BOBCATXL', class = {8}},
{name = 'BOATTRAILER', class = {14}},
{name = 'WASTLNDR', class = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}},
{name = 'TRAILER', class = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}}
}
Config.Lang = {
["TrailerNotFind"] = 'Trailer not found',
["RampeAlreadySet"] = 'A ramp is already attached',
["NoVehicleSet"] = 'No vehicle attached found',
["CantSetThisType"] = 'You cannot attach this type of vehicle to this trailer',
["NotGoodJob"] = 'You are not in the targeted trade',
["PressToOpen"] = 'Press E to open the menu',
["YouBuy"] = 'You have rented: ',
["For"] = 'For: ',
["CantBuy"] = 'You can\'t buy that',
["BuyFor"] = 'Rent for: ',
["Blip"] = 'Rent a trailer',
["NotInVehicle"] = 'You are not in a vehicle',
["refoundTrailer"] = 'Refound a Trailer'
}
Config.SendNotification = function(msg)
if Config.FrameWork == "ESX" then
ESX.ShowNotification(msg)
elseif Config.FrameWork == "QBCore" then
QBCore.Functions.Notify(msg, "error")
end
end
Config.ShowHelpNotification = function(msg)
if Config.FrameWork == "ESX" then
ESX.ShowHelpNotification(msg)
elseif Config.FrameWork == "QBCore" then
print(msg)
end
end
Config.GetJob = function()
if Config.FrameWork == "ESX" then
return ESX.PlayerData.job.name
elseif Config.FrameWork == "QBCore" then
return PlayerJob.name
end
end
Config.Command = {
["attachtrailer"] = "attachtrailer",
["detachtrailer"] = "detachtrailer",
-- TR2 TRAILER
["openrampetr2"] = "openrampetr2",
["opentrunktr2"] = "opentrunktr2",
["closerampetr2"] = "closerampetr2",
["closetrunktr2"] = "closetrunktr2",
}