Scripts/resources/[standalone]/bob74_ipl/dlc_tuner/meetup.lua

66 lines
1.9 KiB
Lua
Raw Normal View History

2024-12-30 10:27:33 +00:00
-- Los Santos Car Meet: -2000.0, 1113.211, -25.36243
2024-12-29 20:02:20 +00:00
exports('GetTunerMeetupObject', function()
return TunerMeetup
end)
TunerMeetup = {
InteriorId = 285697,
Ipl = {
2024-12-30 10:27:33 +00:00
Exterior = {
2024-12-29 20:02:20 +00:00
ipl = {
'tr_tuner_meetup',
'tr_tuner_race_line'
}
},
Load = function()
2024-12-30 10:27:33 +00:00
EnableIpl(TunerMeetup.Ipl.Exterior.ipl, true)
2024-12-29 20:02:20 +00:00
end,
Remove = function()
2024-12-30 10:27:33 +00:00
EnableIpl(TunerMeetup.Ipl.Exterior.ipl, false)
2024-12-29 20:02:20 +00:00
end
},
Entities = {
entity_set_meet_crew = true,
entity_set_meet_lights = true,
2024-12-30 10:27:33 +00:00
entity_set_meet_lights_cheap = false,
2024-12-29 20:02:20 +00:00
entity_set_player = true,
entity_set_test_crew = false,
entity_set_test_lights = true,
2024-12-30 10:27:33 +00:00
entity_set_test_lights_cheap = false,
2024-12-29 20:02:20 +00:00
entity_set_time_trial = true,
Set = function(name, state)
for entity, _ in pairs(TunerMeetup.Entities) do
if entity == name then
TunerMeetup.Entities[entity] = state
TunerMeetup.Entities.Clear()
TunerMeetup.Entities.Load()
end
end
end,
Load = function()
for entity, state in pairs(TunerMeetup.Entities) do
if type(entity) == 'string' and state then
ActivateInteriorEntitySet(TunerMeetup.InteriorId, entity)
end
end
end,
Clear = function()
for entity, _ in pairs(TunerMeetup.Entities) do
if type(entity) == 'string' then
DeactivateInteriorEntitySet(TunerMeetup.InteriorId, entity)
end
end
end
},
LoadDefault = function()
TunerMeetup.Ipl.Load()
TunerMeetup.Entities.Load()
2024-12-30 10:27:33 +00:00
RefreshInterior(TunerMeetup.InteriorId)
2024-12-29 20:02:20 +00:00
end
}