-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.lua
More file actions
92 lines (81 loc) · 3.15 KB
/
config.lua
File metadata and controls
92 lines (81 loc) · 3.15 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
config = {
-- Set whether you want to be informed in your server's console about updates regarding this resource.
['updatesCheck'] = true,
-- The DUI url, by default loaded locally.
['duiUrl'] = 'https://cfx-nui-' .. GetCurrentResourceName() .. '/client/dui/index.html',
-- Strings through-out the resource to translate them if you wish.
['lang'] = {
['addToQueue'] = 'Add to Queue',
['play'] = 'Play',
['queueNow'] = 'Queue Now',
['queueNext'] = 'Queue Next',
['remove'] = 'Remove',
['pause'] = 'Pause',
['stop'] = 'Stop',
['skip'] = 'Skip',
['loop'] = 'Loop',
['volume'] = 'Volume',
['invalidUrl'] = 'URL invalid.',
['invalidYouTubeUrl'] = 'YouTube URL invalid.',
['invalidTwitchUrl'] = 'Twitch URL invalid.',
['urlPlaceholder'] = 'YouTube / Twitch URL',
['sourceError'] = 'Playable media error occurred.',
['twitchChannelOffline'] = 'Twitch channel offline.',
['twitchVodSubOnly'] = 'Twitch video subs-only.',
['twitchError'] = 'Twitch error occurred.',
['youtubeError'] = 'YouTube error occurred.',
['sourceNotFound'] = 'Playable media not be found.',
['liveFeed'] = 'Live Feed',
['twitchClip'] = 'Twitch Clip',
['queueLimitReached'] = 'The queue has already too many entries.'
},
-- Loading related timeouts, default values should work in most servers.
['timeouts'] = {
['assetLoadMs'] = 5000
},
-- Visit our Discord over at https://criticalscripts.shop/discord to get more model entries and share yours too!
['models'] = {
['prop_boombox_01'] = {
['enabled'] = true,
['range'] = 32.0,
['maxVolumePercent'] = 50,
['speaker'] = {
['soundOffset'] = vector3(0.0, 0.1, 0.0),
['directionOffset'] = nil,
['maxDistance'] = 16.0,
['refDistance'] = 8.0,
['rolloffFactor'] = 1.0,
['coneInnerAngle'] = 45,
['coneOuterAngle'] = 180,
['coneOuterGain'] = 0.75,
['fadeDurationMs'] = 250,
['volumeMultiplier'] = 0.5
}
},
}
-- Below you can find a full model config entry reference.
-- ['model'] = {
-- ['enabled'] = boolean,
-- ['range'] = number,
-- ['maxVolumePercent'] = number,
-- ['speaker'] = {
-- ['soundOffset'] = vector3(number, number, number),
-- ['directionOffset'] = vector3(number, number, number),
-- ['maxDistance'] = number,
-- ['refDistance'] = number,
-- ['rolloffFactor'] = number,
-- ['coneInnerAngle'] = number,
-- ['coneOuterAngle'] = number,
-- ['coneOuterGain'] = number,
-- ['fadeDurationMs'] = number,
-- ['volumeMultiplier'] = number
-- ...
-- }
-- }
}
configModelToHash = {}
configHashToModel = {}
for k, v in pairs(config.models) do
configModelToHash[k] = GetHashKey(k)
configHashToModel[configModelToHash[k]] = k
end