|
| 1 | +exports('GetCriminalEnterpriseVehicleWarehouseObject', function() |
| 2 | + return CriminalEnterpriseVehicleWarehouse |
| 3 | +end) |
| 4 | + |
| 5 | +CriminalEnterpriseVehicleWarehouse = { |
| 6 | + InteriorId = 289537, |
| 7 | + |
| 8 | + Ipl = { |
| 9 | + Interior = { |
| 10 | + ipl = { |
| 11 | + 'reh_int_placement_sum2_interior_0_dlc_int_03_sum2_milo_', |
| 12 | + } |
| 13 | + }, |
| 14 | + |
| 15 | + Load = function() |
| 16 | + EnableIpl(CriminalEnterpriseVehicleWarehouse.Ipl.Interior.ipl, true) |
| 17 | + end, |
| 18 | + Remove = function() |
| 19 | + EnableIpl(CriminalEnterpriseVehicleWarehouse.Ipl.Interior.ipl, false) |
| 20 | + end |
| 21 | + }, |
| 22 | + Entities = { |
| 23 | + entity_set_office = true, |
| 24 | + entity_set_light_option_1 = true, |
| 25 | + entity_set_light_option_2 = true, |
| 26 | + entity_set_light_option_3 = true, |
| 27 | + entity_set_tint_options = true, |
| 28 | + |
| 29 | + Set = function(name, state) |
| 30 | + for entity, _ in pairs(CriminalEnterpriseVehicleWarehouse.Entities) do |
| 31 | + if entity == name then |
| 32 | + CriminalEnterpriseVehicleWarehouse.Entities[entity] = state |
| 33 | + CriminalEnterpriseVehicleWarehouse.Entities.Clear() |
| 34 | + CriminalEnterpriseVehicleWarehouse.Entities.Load() |
| 35 | + end |
| 36 | + end |
| 37 | + end, |
| 38 | + Load = function() |
| 39 | + for entity, state in pairs(CriminalEnterpriseVehicleWarehouse.Entities) do |
| 40 | + if type(entity) == 'string' and state then |
| 41 | + ActivateInteriorEntitySet(CriminalEnterpriseVehicleWarehouse.InteriorId, entity) |
| 42 | + end |
| 43 | + end |
| 44 | + end, |
| 45 | + Clear = function() |
| 46 | + for entity, _ in pairs(CriminalEnterpriseVehicleWarehouse.Entities) do |
| 47 | + if type(entity) == 'string' then |
| 48 | + DeactivateInteriorEntitySet(CriminalEnterpriseVehicleWarehouse.InteriorId, entity) |
| 49 | + end |
| 50 | + end |
| 51 | + end |
| 52 | + }, |
| 53 | + |
| 54 | + LoadDefault = function() |
| 55 | + CriminalEnterpriseVehicleWarehouse.Ipl.Load() |
| 56 | + CriminalEnterpriseVehicleWarehouse.Entities.Load() |
| 57 | + |
| 58 | + RefreshInterior(CriminalEnterpriseVehicleWarehouse.interiorId) |
| 59 | + end |
| 60 | +} |
0 commit comments