2024-12-29 20:02:20 +00:00
|
|
|
exports('GetTunerMethLabObject', function()
|
|
|
|
return TunerMethLab
|
|
|
|
end)
|
|
|
|
|
|
|
|
TunerMethLab = {
|
|
|
|
InteriorId = 284673,
|
|
|
|
|
|
|
|
Entities = {
|
|
|
|
tintable_walls = true,
|
|
|
|
|
|
|
|
Set = function(name, state)
|
|
|
|
for entity, _ in pairs(TunerMethLab.Entities) do
|
|
|
|
if entity == name then
|
|
|
|
TunerMethLab.Entities[entity] = state
|
|
|
|
TunerMethLab.Entities.Clear()
|
|
|
|
TunerMethLab.Entities.Load()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
Load = function()
|
|
|
|
for entity, state in pairs(TunerMethLab.Entities) do
|
|
|
|
if type(entity) == 'string' and state then
|
|
|
|
ActivateInteriorEntitySet(TunerMethLab.InteriorId, entity)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
Clear = function()
|
|
|
|
for entity, _ in pairs(TunerMethLab.Entities) do
|
|
|
|
if type(entity) == 'string' then
|
|
|
|
DeactivateInteriorEntitySet(TunerMethLab.InteriorId, entity)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
},
|
|
|
|
|
|
|
|
LoadDefault = function()
|
|
|
|
TunerMethLab.Entities.Load()
|
|
|
|
|
2024-12-30 10:27:33 +00:00
|
|
|
SetInteriorEntitySetColor(TunerMethLab.InteriorId, TunerMethLab.Entities.tintable_walls, 3)
|
|
|
|
RefreshInterior(TunerMethLab.InteriorId)
|
2024-12-29 20:02:20 +00:00
|
|
|
end
|
|
|
|
}
|