Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.34 KB | None | 0 0
  1. -- Clubhouse2: 998.4809, -3164.711, -38.90733
  2.  
  3. exports('GetBikerClubhouse2Object', function()
  4. return BikerClubhouse2
  5. end)
  6.  
  7. BikerClubhouse2 = {
  8. interiorId = 246529,
  9. Ipl = {
  10. Interior = {
  11. ipl = "bkr_biker_interior_placement_interior_1_biker_dlc_int_02_milo",
  12. Load = function() EnableIpl(BikerClubhouse2.Ipl.Interior.ipl, true) end,
  13. Remove = function() EnableIpl(BikerClubhouse2.Ipl.Interior.ipl, false) end
  14. },
  15. },
  16. Walls = {
  17. brick = "walls_01", plain = "walls_02",
  18. Color = {
  19. greenAndGray = 1,
  20. multicolor = 2,
  21. orangeAndGray = 3,
  22. blue = 4,
  23. lightBlueAndSable = 5,
  24. greenAndRed = 6,
  25. yellowAndGray = 7,
  26. red = 8,
  27. fuchsiaAndGray = 9
  28. },
  29. Set = function(walls, color, refresh)
  30. if color == nil then color = 0 end
  31. BikerClubhouse2.Walls.Clear(false)
  32. SetIplPropState(BikerClubhouse2.interiorId, walls, true, refresh)
  33. SetInteriorPropColor(BikerClubhouse2.interiorId, walls, color)
  34. end,
  35. Clear = function(refresh)
  36. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.Walls.brick, BikerClubhouse2.Walls.plain}, false, refresh)
  37. end
  38. },
  39. LowerWalls = {
  40. default = "lower_walls_default",
  41. SetColor = function(color, refresh)
  42. SetIplPropState(BikerClubhouse2.interiorId, BikerClubhouse2.LowerWalls.default, true, refresh)
  43. SetInteriorPropColor(BikerClubhouse2.interiorId, BikerClubhouse2.LowerWalls.default, color)
  44. end,
  45. },
  46. Furnitures = {
  47. A = "furnishings_01", B = "furnishings_02",
  48. -- Colors for "furnishings_01" only
  49. Color = {
  50. turquoise = 0,
  51. darkBrown = 1,
  52. brown = 2,
  53. -- 3 equal 1
  54. brown2 = 4,
  55. gray = 5,
  56. red = 6,
  57. darkGray = 7,
  58. black = 8,
  59. red2 = 9
  60. },
  61. Set = function(furn, color, refresh)
  62. if color == nil then color = 0 end
  63. BikerClubhouse2.Furnitures.Clear(false)
  64. SetIplPropState(BikerClubhouse2.interiorId, furn, true, refresh)
  65. SetInteriorPropColor(BikerClubhouse2.interiorId, furn, color)
  66. end,
  67. Clear = function(refresh)
  68. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.Furnitures.A, BikerClubhouse2.Furnitures.B}, false, refresh)
  69. end
  70. },
  71. Decoration = {
  72. A = "decorative_01", B = "decorative_02",
  73. Set = function(deco, refresh)
  74. BikerClubhouse2.Decoration.Clear(false)
  75. SetIplPropState(BikerClubhouse2.interiorId, deco, true, refresh)
  76. end,
  77. Clear = function(refresh)
  78. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.Decoration.A, BikerClubhouse2.Decoration.B}, false, refresh)
  79. end
  80. },
  81. Mural = {
  82. none = "", death1 = "mural_01", cityColor1 = "mural_02", death2 = "mural_03", cityColor2 = "mural_04",
  83. graffitis = "mural_05", cityColor3 = "mural_06", cityColor4 = "mural_07", cityBlack = "mural_08",
  84. death3 = "mural_09",
  85. Set = function(mural, refresh)
  86. BikerClubhouse2.Mural.Clear(false)
  87. if mural ~= "" then
  88. SetIplPropState(BikerClubhouse2.interiorId, mural, true, refresh)
  89. else
  90. if (refresh) then RefreshInterior(BikerClubhouse2.interiorId) end
  91. end
  92. end,
  93. Clear = function(refresh)
  94. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.Mural.death1, BikerClubhouse2.Mural.cityColor1, BikerClubhouse2.Mural.death2, BikerClubhouse2.Mural.cityColor2,
  95. BikerClubhouse2.Mural.graffitis, BikerClubhouse2.Mural.cityColor3, BikerClubhouse2.Mural.cityColor4, BikerClubhouse2.Mural.cityBlack, BikerClubhouse2.Mural.death3}, false, refresh)
  96. end
  97. },
  98. GunLocker = {
  99. on = "gun_locker", off = "no_gun_locker",
  100. Set = function(locker, refresh)
  101. BikerClubhouse2.GunLocker.Clear(false)
  102. if locker ~= "" then SetIplPropState(BikerClubhouse2.interiorId, locker, true, refresh) end
  103. end,
  104. Clear = function(refresh)
  105. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.GunLocker.on, BikerClubhouse2.GunLocker.off}, false, refresh)
  106. end
  107. },
  108. ModBooth = {
  109. none = "", on = "mod_booth", off = "no_mod_booth",
  110. Set = function(mod, refresh)
  111. BikerClubhouse2.ModBooth.Clear(false)
  112. if mod ~= "" then
  113. SetIplPropState(BikerClubhouse2.interiorId, mod, true, refresh)
  114. else
  115. if (refresh) then RefreshInterior(BikerClubhouse2.interiorId) end
  116. end
  117. end,
  118. Clear = function(refresh)
  119. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.ModBooth.on, BikerClubhouse2.ModBooth.off}, false, refresh)
  120. end
  121. },
  122. Meth = {
  123. none = "", stage1 = "meth_small", stage2 = {"meth_small", "meth_medium"}, stage3 = {"meth_small", "meth_medium", "meth_large"},
  124. Set = function(stage, refresh)
  125. BikerClubhouse2.Meth.Clear(false)
  126. if stage ~= "" then
  127. SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
  128. else
  129. if (refresh) then RefreshInterior(BikerClubhouse2.interiorId) end
  130. end
  131. end,
  132. Clear = function(refresh)
  133. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.Meth.stage1, BikerClubhouse2.Meth.stage2, BikerClubhouse2.Meth.stage3}, false, refresh)
  134. end
  135. },
  136. Cash = {
  137. none = "", stage1 = "cash_small", stage2 = {"cash_small", "cash_medium"}, stage3 = {"cash_small", "cash_medium", "cash_large"},
  138. Set = function(stage, refresh)
  139. BikerClubhouse2.Cash.Clear(false)
  140. if stage ~= "" then
  141. SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
  142. else
  143. if (refresh) then RefreshInterior(BikerClubhouse2.interiorId) end
  144. end
  145. end,
  146. Clear = function(refresh)
  147. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.Cash.stage1, BikerClubhouse2.Cash.stage2, BikerClubhouse2.Cash.stage3}, false, refresh)
  148. end
  149. },
  150. Weed = {
  151. none = "", stage1 = "weed_small", stage2 = {"weed_small", "weed_medium"}, stage3 = {"weed_small", "weed_medium", "weed_large"},
  152. Set = function(stage, refresh)
  153. BikerClubhouse2.Weed.Clear(false)
  154. if stage ~= "" then
  155. SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
  156. else
  157. if (refresh) then RefreshInterior(BikerClubhouse2.interiorId) end
  158. end
  159. end,
  160. Clear = function(refresh)
  161. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.Weed.stage1, BikerClubhouse2.Weed.stage2, BikerClubhouse2.Weed.stage3}, false, refresh)
  162. end
  163. },
  164. Coke = {
  165. none = "", stage1 = "coke_small", stage2 = {"coke_small", "coke_medium"}, stage3 = {"coke_small", "coke_medium", "coke_large"},
  166. Set = function(stage, refresh)
  167. BikerClubhouse2.Coke.Clear(false)
  168. if stage ~= "" then
  169. SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
  170. else
  171. if (refresh) then RefreshInterior(BikerClubhouse2.interiorId) end
  172. end
  173. end,
  174. Clear = function(refresh)
  175. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.Coke.stage1, BikerClubhouse2.Coke.stage2, BikerClubhouse2.Coke.stage3}, false, refresh)
  176. end
  177. },
  178. Counterfeit = {
  179. none = "", stage1 = "counterfeit_small", stage2 = {"counterfeit_small", "counterfeit_medium"}, stage3 = {"counterfeit_small", "counterfeit_medium", "counterfeit_large"},
  180. Set = function(stage, refresh)
  181. BikerClubhouse2.Counterfeit.Clear(false)
  182. if stage ~= "" then
  183. SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
  184. else
  185. if (refresh) then RefreshInterior(BikerClubhouse2.interiorId) end
  186. end
  187. end,
  188. Clear = function(refresh)
  189. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.Counterfeit.stage1, BikerClubhouse2.Counterfeit.stage2, BikerClubhouse2.Counterfeit.stage3}, false, refresh)
  190. end
  191. },
  192. Documents = {
  193. none = "", stage1 = "id_small", stage2 = {"id_small", "id_medium"}, stage3 = {"id_small", "id_medium", "id_large"},
  194. Set = function(stage, refresh)
  195. BikerClubhouse2.Documents.Clear(false)
  196. if stage ~= "" then
  197. SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
  198. else
  199. if (refresh) then RefreshInterior(BikerClubhouse2.interiorId) end
  200. end
  201. end,
  202. Clear = function(refresh)
  203. SetIplPropState(BikerClubhouse2.interiorId, {BikerClubhouse2.Documents.stage1, BikerClubhouse2.Documents.stage2, BikerClubhouse2.Documents.stage3}, false, refresh)
  204. end
  205. },
  206.  
  207. LoadDefault = function()
  208. BikerClubhouse2.Ipl.Interior.Load()
  209.  
  210. BikerClubhouse2.Walls.Set(BikerClubhouse2.Walls.brick, BikerClubhouse2.Walls.Color.red)
  211. BikerClubhouse2.LowerWalls.SetColor(BikerClubhouse2.Walls.Color.red)
  212.  
  213. BikerClubhouse2.Furnitures.Set(BikerClubhouse2.Furnitures.B, BikerClubhouse2.Furnitures.Color.black)
  214. BikerClubhouse2.Decoration.Set(BikerClubhouse2.Decoration.B)
  215. BikerClubhouse2.Mural.Set(BikerClubhouse2.Mural.death1)
  216.  
  217. BikerClubhouse2.ModBooth.Set(BikerClubhouse2.ModBooth.on)
  218. BikerClubhouse2.GunLocker.Set(BikerClubhouse2.GunLocker.on)
  219.  
  220. BikerClubhouse2.Meth.Set(BikerClubhouse2.Meth.none)
  221. BikerClubhouse2.Cash.Set(BikerClubhouse2.Cash.none)
  222. BikerClubhouse2.Coke.Set(BikerClubhouse2.Coke.none)
  223. BikerClubhouse2.Weed.Set(BikerClubhouse2.Weed.none)
  224. BikerClubhouse2.Counterfeit.Set(BikerClubhouse2.Counterfeit.none)
  225. BikerClubhouse2.Documents.Set(BikerClubhouse2.Documents.none)
  226.  
  227. RefreshInterior(BikerClubhouse2.interiorId)
  228. end
  229. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement