mirror of
https://github.com/Michatec/ptelevision.git
synced 2026-03-31 23:46:30 +02:00
43 lines
1.2 KiB
Lua
43 lines
1.2 KiB
Lua
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.
|
|
if value.url then
|
|
for i=1, #Config.BannedWords do
|
|
if string.find(value.url, Config.BannedWords[i]) then
|
|
return
|
|
end
|
|
end
|
|
end
|
|
cb()
|
|
end,
|
|
Broadcast = function(source, data, cb) -- cb() to approve.
|
|
cb()
|
|
end,
|
|
}
|