1+ -- Salvage Yard: 1077.276, -2274.876, -50.000
2+ exports (' GetChopShopSalvageObject' , function ()
3+ return ChopShopSalvage
4+ end )
5+
6+ ChopShopSalvage = {
7+ interiorId = 293377 ,
8+
9+ Ipl = {
10+ Exterior = {
11+ ipl = {
12+ " m23_2_sp1_03_reds" ,
13+ " m23_2_sc1_03_reds" ,
14+ " m23_2_id2_04_reds" ,
15+ " m23_2_cs1_05_reds" ,
16+ " m23_2_cs4_11_reds" ,
17+ }
18+ },
19+
20+ Load = function ()
21+ EnableIpl (ChopShopSalvage .Ipl .Exterior .ipl , true )
22+ end ,
23+ Remove = function ()
24+ EnableIpl (ChopShopSalvage .Ipl .Exterior .ipl , false )
25+ end
26+ },
27+
28+ Style = {
29+ basic = {
30+ " set_mechanic_basic" ,
31+ " set_safe_basic"
32+ },
33+ upgrade = {
34+ " set_mechanic_upgrade" ,
35+ " set_safe_upgrade"
36+ },
37+
38+ Set = function (style , refresh )
39+ ChopShopSalvage .Style .Clear (false )
40+
41+ SetIplPropState (ChopShopSalvage .interiorId , style , true , refresh )
42+ end ,
43+ Clear = function (refresh )
44+ SetIplPropState (ChopShopSalvage .interiorId , {
45+ ChopShopSalvage .Style .basic ,
46+ ChopShopSalvage .Style .upgrade
47+ }, false , refresh )
48+ end
49+ },
50+
51+ Lift1 = {
52+ down = " set_car_lift_01_down" ,
53+ up = " set_car_lift_01_up" ,
54+
55+ Set = function (lift , refresh )
56+ ChopShopSalvage .Lift1 .Clear (false )
57+
58+ SetIplPropState (ChopShopSalvage .interiorId , lift , true , refresh )
59+ end ,
60+ Clear = function (refresh )
61+ SetIplPropState (ChopShopSalvage .interiorId , {
62+ ChopShopSalvage .Lift1 .down ,
63+ ChopShopSalvage .Lift1 .up
64+ }, false , refresh )
65+ end
66+ },
67+
68+ Lift2 = {
69+ down = " set_car_lift_02_down" ,
70+ up = " set_car_lift_02_up" ,
71+
72+ Set = function (lift , refresh )
73+ ChopShopSalvage .Lift2 .Clear (false )
74+
75+ SetIplPropState (ChopShopSalvage .interiorId , lift , true , refresh )
76+ end ,
77+ Clear = function (refresh )
78+ SetIplPropState (ChopShopSalvage .interiorId , {
79+ ChopShopSalvage .Lift2 .down ,
80+ ChopShopSalvage .Lift2 .up
81+ }, false , refresh )
82+ end
83+ },
84+
85+ Tint = {
86+ gray = 1 ,
87+ red = 2 ,
88+ blue = 3 ,
89+ orange = 4 ,
90+ yellow = 5 ,
91+ green = 6 ,
92+ pink = 7 ,
93+ teal = 8 ,
94+ darkGray = 9 ,
95+
96+ SetColor = function (color , refresh )
97+ SetIplPropState (ChopShopSalvage .interiorId , " set_tint_b" , true , refresh )
98+ SetInteriorEntitySetColor (ChopShopSalvage .interiorId , " set_tint_b" , color )
99+ end
100+ },
101+
102+ LoadDefault = function ()
103+ -- Exterior
104+ ChopShopSalvage .Ipl .Load ()
105+
106+ -- Interior
107+ ChopShopSalvage .Tint .SetColor (ChopShopSalvage .Tint .gray , false )
108+ ChopShopSalvage .Style .Set (ChopShopSalvage .Style .upgrade , false )
109+
110+ ChopShopSalvage .Lift1 .Set (ChopShopSalvage .Lift1 .up , false )
111+ ChopShopSalvage .Lift2 .Set (ChopShopSalvage .Lift2 .up , false )
112+
113+ RefreshInterior (ChopShopSalvage .interiorId )
114+ end
115+ }
0 commit comments