forked from bepo13/FiveM-RadialMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
119 lines (118 loc) · 6.65 KB
/
config.lua
File metadata and controls
119 lines (118 loc) · 6.65 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
-- Menu configuration, array of menus to display
menuConfigs = {
['emotes'] = { -- Example menu for emotes when player is on foot
enableMenu = function() -- Function to enable/disable menu handling
local player = GetPlayerPed(-1)
return IsPedOnFoot(player)
end,
data = { -- Data that is passed to Javascript
keybind = "F5", -- Wheel keybind to use (case sensitive, must match entry in keybindControls table)
style = { -- Wheel style settings
sizePx = 600, -- Wheel size in pixels
slices = { -- Slice style settings
default = { ['fill'] = '#000000', ['stroke'] = '#000000', ['stroke-width'] = 2, ['opacity'] = 0.60 },
hover = { ['fill'] = '#ff8000', ['stroke'] = '#000000', ['stroke-width'] = 2, ['opacity'] = 0.80 },
selected = { ['fill'] = '#ff8000', ['stroke'] = '#000000', ['stroke-width'] = 2, ['opacity'] = 0.80 }
},
titles = { -- Text style settings
default = { ['fill'] = '#ffffff', ['stroke'] = 'none', ['font'] = 'Helvetica', ['font-size'] = 16, ['font-weight'] = 'bold' },
hover = { ['fill'] = '#ffffff', ['stroke'] = 'none', ['font'] = 'Helvetica', ['font-size'] = 16, ['font-weight'] = 'bold' },
selected = { ['fill'] = '#ffffff', ['stroke'] = 'none', ['font'] = 'Helvetica', ['font-size'] = 16, ['font-weight'] = 'bold' }
},
icons = {
width = 64,
height = 64
}
},
wheels = { -- Array of wheels to display
{
navAngle = 270, -- Oritentation of wheel
minRadiusPercent = 0.3, -- Minimum radius of wheel in percentage
maxRadiusPercent = 0.6, -- Maximum radius of wheel in percentage
labels = {"CANCEL", "NO", "CHEER", "CLAP", "FOLDARMS", "LEAN"},
commands = {"e cancel", "e no", "e cheer", "e slowclap", "e foldarms", "e leanwall"}
},
{
navAngle = 285, -- Oritentation of wheel
minRadiusPercent = 0.6, -- Minimum radius of wheel in percentage
maxRadiusPercent = 0.9, -- Maximum radius of wheel in percentage
labels = {"SALUTE", "FINGER", "PEACE", "FACEPALM", "DAMN", "FAIL", "DEAD", "GANG1", "GANG2", "COP", "HOLSTER", "CROWDS"},
commands = {"e salute", "e finger", "e peace", "e palm", "e damn", "e fail", "e dead", "e gang1", "e gang2", "e copidle", "e holster", "e copcrowd2"}
}
}
}
},
['vehicles'] = { -- Example menu for vehicle controls when player is in a vehicle
enableMenu = function() -- Function to enable/disable menu handling
local player = GetPlayerPed(-1)
return IsPedInAnyVehicle(player, false)
end,
data = { -- Data that is passed to Javascript
keybind = "F5", -- Wheel keybind to use (case sensitive, must match entry in keybindControls table)
style = { -- Wheel style settings
sizePx = 400, -- Wheel size in pixels
slices = { -- Slice style settings
type = "PieSlice",
default = { ['fill'] = '#000000', ['stroke'] = '#000000', ['stroke-width'] = 3, ['opacity'] = 0.60 },
hover = { ['fill'] = '#ff8000', ['stroke'] = '#000000', ['stroke-width'] = 3, ['opacity'] = 0.80 },
selected = { ['fill'] = '#ff8000', ['stroke'] = '#000000', ['stroke-width'] = 3, ['opacity'] = 0.80 }
},
titles = { -- Text style settings
default = { ['fill'] = '#ffffff', ['stroke'] = 'none', ['font'] = 'Helvetica', ['font-size'] = 16, ['font-weight'] = 'bold' },
hover = { ['fill'] = '#ffffff', ['stroke'] = 'none', ['font'] = 'Helvetica', ['font-size'] = 16, ['font-weight'] = 'bold' },
selected = { ['fill'] = '#ffffff', ['stroke'] = 'none', ['font'] = 'Helvetica', ['font-size'] = 16, ['font-weight'] = 'bold' }
},
icons = {
width = 64,
height = 64
}
},
wheels = { -- Array of wheels to display
{
navAngle = 270, -- Oritentation of wheel
minRadiusPercent = 0.4, -- Minimum radius of wheel in percentage
maxRadiusPercent = 0.9, -- Maximum radius of wheel in percentage
labels = {"imgsrc:images/engine.png", "imgsrc:images/key.png", "imgsrc:images/doors.png", "imgsrc:images/neon.png"},
events = {"glz_veh:engine", nil, nil, "glz_veh:neons"},
commands = {nil, "carlock"},
menu = {nil, nil, "vehDoors"} -- Menus can be opened too, just put name of it
}
}
}
},
['vehDoors'] = { -- Example menu for vehicle controls when player is in a vehicle
enableMenu = function() -- Function to enable/disable menu handling
return false
end,
data = { -- Data that is passed to Javascript
keybind = nil,
style = { -- Wheel style settings
sizePx = 400, -- Wheel size in pixels
slices = { -- Slice style settings
type = "PieSlice",
default = { ['fill'] = '#000000', ['stroke'] = '#000000', ['stroke-width'] = 3, ['opacity'] = 0.60 },
hover = { ['fill'] = '#ff8000', ['stroke'] = '#000000', ['stroke-width'] = 3, ['opacity'] = 0.80 },
selected = { ['fill'] = '#ff8000', ['stroke'] = '#000000', ['stroke-width'] = 3, ['opacity'] = 0.80 }
},
titles = { -- Text style settings
default = { ['fill'] = '#ffffff', ['stroke'] = 'none', ['font'] = 'Helvetica', ['font-size'] = 16, ['font-weight'] = 'bold' },
hover = { ['fill'] = '#ffffff', ['stroke'] = 'none', ['font'] = 'Helvetica', ['font-size'] = 16, ['font-weight'] = 'bold' },
selected = { ['fill'] = '#ffffff', ['stroke'] = 'none', ['font'] = 'Helvetica', ['font-size'] = 16, ['font-weight'] = 'bold' }
},
icons = {
width = 64,
height = 64
}
},
wheels = { -- Array of wheels to display
{
navAngle = 270, -- Oritentation of wheel
minRadiusPercent = 0.4, -- Minimum radius of wheel in percentage
maxRadiusPercent = 0.9, -- Maximum radius of wheel in percentage
labels = {"imgsrc:images/hood.png", "imgsrc:images/doorR.png", "imgsrc:images/doorR.png", "imgsrc:images/trunk.png", "imgsrc:images/doorL.png", "imgsrc:images/doorL.png"},
events = {{"radialmenu:doors", 4}, {"radialmenu:doors", 1}, {"radialmenu:doors", 3}, {"radialmenu:doors", 5}, {"radialmenu:doors", 2}, {"radialmenu:doors", 0}}
}
}
}
}
}