mirror of
https://github.com/Michatec/ptelevision.git
synced 2026-03-31 23:46:30 +02:00
Moved all files to root.
This commit is contained in:
40
config.lua
Normal file
40
config.lua
Normal file
@@ -0,0 +1,40 @@
|
||||
Config = {}
|
||||
|
||||
Config.Models = { -- Any TV Models used on the map or in locations must be defined here.
|
||||
[`prop_tv_flat_01`] = {
|
||||
DefaultVolume = 0.5,
|
||||
Range = 20.0,
|
||||
Target = "tvscreen", -- Only use if prop has render-target name.
|
||||
Scale = 0.085,
|
||||
Offset = vector3(-1.02, -0.055, 1.04)
|
||||
}
|
||||
}
|
||||
|
||||
Config.Locations = { -- REMOVE ALL IF NOT USING ONESYNC, OR IT SHALL BREAK.
|
||||
{
|
||||
Model = `prop_tv_flat_01`,
|
||||
Position = vector4(144.3038, -1037.4647, 29.4173, 70.81),
|
||||
},
|
||||
}
|
||||
|
||||
Config.Channels = { -- These channels are default channels and cannot be overriden.
|
||||
{name = "Pickle Mods", url = "twitch.tv/picklemods"},
|
||||
}
|
||||
|
||||
Config.BannedWords = {
|
||||
"google",
|
||||
}
|
||||
|
||||
Config.Events = { -- Events for approving broadcasts / interactions (due to popular demand).
|
||||
ScreenInteract = function(source, data, key, value, cb) -- cb() to approve.
|
||||
for i=1, #Config.BannedWords do
|
||||
if string.find(value.url, Config.BannedWords) then
|
||||
return
|
||||
end
|
||||
end
|
||||
cb()
|
||||
end,
|
||||
Broadcast = function(source, data, cb) -- cb() to approve.
|
||||
cb()
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user