-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCustomize.lua
More file actions
128 lines (116 loc) · 3.42 KB
/
Customize.lua
File metadata and controls
128 lines (116 loc) · 3.42 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
Customize = {
Framework = "QBCore", -- QBCore | ESX | NewESX | OldQBCore (Write the framework you used as in the example)
SpeedometerTypeKMH = true, -- kmh | mph
AlwaysOnMinimap = false, -- Specifies whether the minimap should be visible outside the vehicle
StreetDisplay = true,
ServerName = 'uz rp',
MoneyType = '$',
OnlinePlayersRefreshTime = 25000,
GetVehFuel = function(Veh)
return GetVehicleFuelLevel(Veh) -- exports["LegacyFuel"]:GetFuel(Veh) - GetVehicleFuelLevel(Veh) - exports["uz_fuel"]:GetFuel(Veh)
end,
Display = {
PlayerDisplay = true,
MoneyDisplay = true
},
UIColor = {
Health = '#F3163E',
Armour = '#00A3FF',
Hunger = '#ADFE00',
Thirst = '#00FFF0',
Stamina = '#FFA048',
Stress = '#FF0099',
Location = '#FFFFFF',
MoneyBackground = '#FFFFFF',
ServersBackground = '#FFFFFF',
ServerDetails = '#F3163E',
MoneyIcon = '#F3163E',
},
Stress = true, -- true | false
StressChance = 0.1, -- Default: 10% -- Percentage Stress Chance When Shooting (0-1)
MinimumStress = 50, -- Minimum Stress Level For Screen Shaking
MinimumSpeed = 100, -- Going Over This Speed Will Cause Stress
MinimumSpeedUnbuckled = 50, -- Going Over This Speed Will Cause Stress
DisableJobsStress = { 'police', 'ambulance'}, -- Add here jobs you want to disable stress - OLD: -- DisablePoliceStress = true, -- If true will disable stress for people with the police job
WhitelistedWeaponStress = {
`weapon_petrolcan`,
`weapon_hazardcan`,
`weapon_fireextinguisher`
},
Intensity = {
[1] = {
min = 50,
max = 60,
intensity = 1500,
},
[2] = {
min = 60,
max = 70,
intensity = 2000,
},
[3] = {
min = 70,
max = 80,
intensity = 2500,
},
[4] = {
min = 80,
max = 90,
intensity = 2700,
},
[5] = {
min = 90,
max = 100,
intensity = 3000,
},
},
EffectInterval = {
[1] = {
min = 50,
max = 60,
timeout = math.random(50000, 60000)
},
[2] = {
min = 60,
max = 70,
timeout = math.random(40000, 50000)
},
[3] = {
min = 70,
max = 80,
timeout = math.random(30000, 40000)
},
[4] = {
min = 80,
max = 90,
timeout = math.random(20000, 30000)
},
[5] = {
min = 90,
max = 100,
timeout = math.random(15000, 20000)
}
}
}
function GetFramework()
local Get = nil
if Customize.Framework == "NewESX" then
Get = exports['es_extended']:getSharedObject()
end
if Customize.Framework == "QBCore" then
Get = exports["qb-core"]:GetCoreObject()
end
if Customize.Framework == "ESX" then
while Get == nil do
TriggerEvent('esx:getSharedObject', function(Set) Get = Set end)
Citizen.Wait(0)
end
end
if Customize.Framework == "OldQBCore" then
while Get == nil do
TriggerEvent('QBCore:GetObject', function(Set) Get = Set end)
Citizen.Wait(200)
end
end
return Get
end