housing
This commit is contained in:
parent
6d90da2841
commit
b71b47a9fb
169 changed files with 12687 additions and 2932 deletions
388
resources/[housing]/bob74_ipl/dlc_bikers/clubhouse1.lua
Normal file
388
resources/[housing]/bob74_ipl/dlc_bikers/clubhouse1.lua
Normal file
|
|
@ -0,0 +1,388 @@
|
|||
-- Clubhouse1: 1107.04, -3157.399, -37.51859
|
||||
exports('GetBikerClubhouse1Object', function()
|
||||
return BikerClubhouse1
|
||||
end)
|
||||
|
||||
BikerClubhouse1 = {
|
||||
interiorId = 246273,
|
||||
|
||||
Ipl = {
|
||||
Interior = {
|
||||
ipl = "bkr_biker_interior_placement_interior_0_biker_dlc_int_01_milo",
|
||||
|
||||
Load = function()
|
||||
EnableIpl(BikerClubhouse1.Ipl.Interior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(BikerClubhouse1.Ipl.Interior.ipl, false)
|
||||
end
|
||||
}
|
||||
},
|
||||
Walls = {
|
||||
brick = "walls_01",
|
||||
plain = "walls_02",
|
||||
Color = {
|
||||
sable = 0,
|
||||
yellowGray = 1,
|
||||
red = 2,
|
||||
brown = 3,
|
||||
yellow = 4,
|
||||
lightYellow = 5,
|
||||
lightYellowGray = 6,
|
||||
lightGray = 7,
|
||||
orange = 8,
|
||||
gray = 9
|
||||
},
|
||||
|
||||
Set = function(walls, color, refresh)
|
||||
if color == nil then
|
||||
color = 0
|
||||
end
|
||||
|
||||
BikerClubhouse1.Walls.Clear(false)
|
||||
|
||||
SetIplPropState(BikerClubhouse1.interiorId, walls, true, refresh)
|
||||
SetInteriorEntitySetColor(BikerClubhouse1.interiorId, walls, color)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.Walls.brick,
|
||||
BikerClubhouse1.Walls.plain
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Furnitures = {
|
||||
A = "furnishings_01",
|
||||
B = "furnishings_02",
|
||||
|
||||
Set = function(furn, color, refresh)
|
||||
if color == nil then
|
||||
color = 0
|
||||
end
|
||||
|
||||
BikerClubhouse1.Furnitures.Clear(false)
|
||||
|
||||
SetIplPropState(BikerClubhouse1.interiorId, furn, true, refresh)
|
||||
SetInteriorEntitySetColor(BikerClubhouse1.interiorId, furn, color)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.Furnitures.A,
|
||||
BikerClubhouse1.Furnitures.B
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Decoration = {
|
||||
A = "decorative_01",
|
||||
B = "decorative_02",
|
||||
|
||||
Set = function(deco, refresh)
|
||||
BikerClubhouse1.Decoration.Clear(false)
|
||||
|
||||
SetIplPropState(BikerClubhouse1.interiorId, deco, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.Decoration.A,
|
||||
BikerClubhouse1.Decoration.B
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Mural = {
|
||||
none = "",
|
||||
rideFree = "mural_01",
|
||||
mods = "mural_02",
|
||||
brave = "mural_03",
|
||||
fist = "mural_04",
|
||||
forest = "mural_05",
|
||||
mods2 = "mural_06",
|
||||
rideForever = "mural_07",
|
||||
heart = "mural_08",
|
||||
route68 = "mural_09",
|
||||
|
||||
Set = function(mural, refresh)
|
||||
BikerClubhouse1.Mural.Clear(false)
|
||||
|
||||
if mural ~= "" then
|
||||
SetIplPropState(BikerClubhouse1.interiorId, mural, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse1.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.Mural.rideFree,
|
||||
BikerClubhouse1.Mural.mods,
|
||||
BikerClubhouse1.Mural.brave,
|
||||
BikerClubhouse1.Mural.fist,
|
||||
BikerClubhouse1.Mural.forest,
|
||||
BikerClubhouse1.Mural.mods2,
|
||||
BikerClubhouse1.Mural.rideForever,
|
||||
BikerClubhouse1.Mural.heart,
|
||||
BikerClubhouse1.Mural.route68
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
GunLocker = {
|
||||
none = "",
|
||||
on = "gun_locker",
|
||||
off = "no_gun_locker",
|
||||
|
||||
Set = function(locker, refresh)
|
||||
BikerClubhouse1.GunLocker.Clear(false)
|
||||
|
||||
if locker ~= "" then
|
||||
SetIplPropState(BikerClubhouse1.interiorId, locker, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse1.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.GunLocker.on,
|
||||
BikerClubhouse1.GunLocker.off
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
ModBooth = {
|
||||
none = "",
|
||||
on = "mod_booth",
|
||||
off = "no_mod_booth",
|
||||
|
||||
Set = function(mod, refresh)
|
||||
BikerClubhouse1.ModBooth.Clear(false)
|
||||
|
||||
if mod ~= "" then
|
||||
SetIplPropState(BikerClubhouse1.interiorId, mod, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse1.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.ModBooth.on,
|
||||
BikerClubhouse1.ModBooth.off
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Meth = {
|
||||
none = "",
|
||||
stage1 = "meth_stash1",
|
||||
stage2 = {
|
||||
"meth_stash1",
|
||||
"meth_stash2"
|
||||
},
|
||||
stage3 = {
|
||||
"meth_stash1",
|
||||
"meth_stash2",
|
||||
"meth_stash3"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse1.Meth.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse1.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.Meth.stage1,
|
||||
BikerClubhouse1.Meth.stage2,
|
||||
BikerClubhouse1.Meth.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Cash = {
|
||||
none = "",
|
||||
stage1 = "cash_stash1",
|
||||
stage2 = {
|
||||
"cash_stash1",
|
||||
"cash_stash2"
|
||||
},
|
||||
stage3 = {
|
||||
"cash_stash1",
|
||||
"cash_stash2",
|
||||
"cash_stash3"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse1.Cash.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse1.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.Cash.stage1,
|
||||
BikerClubhouse1.Cash.stage2,
|
||||
BikerClubhouse1.Cash.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Weed = {
|
||||
none = "",
|
||||
stage1 = "weed_stash1",
|
||||
stage2 = {
|
||||
"weed_stash1",
|
||||
"weed_stash2"
|
||||
},
|
||||
stage3 = {
|
||||
"weed_stash1",
|
||||
"weed_stash2",
|
||||
"weed_stash3"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse1.Weed.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse1.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.Weed.stage1,
|
||||
BikerClubhouse1.Weed.stage2,
|
||||
BikerClubhouse1.Weed.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Coke = {
|
||||
none = "",
|
||||
stage1 = "coke_stash1",
|
||||
stage2 = {
|
||||
"coke_stash1",
|
||||
"coke_stash2"
|
||||
},
|
||||
stage3 = {
|
||||
"coke_stash1",
|
||||
"coke_stash2",
|
||||
"coke_stash3"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse1.Coke.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse1.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.Coke.stage1,
|
||||
BikerClubhouse1.Coke.stage2,
|
||||
BikerClubhouse1.Coke.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Counterfeit = {
|
||||
none = "",
|
||||
stage1 = "counterfeit_stash1",
|
||||
stage2 = {
|
||||
"counterfeit_stash1",
|
||||
"counterfeit_stash2"
|
||||
},
|
||||
stage3 = {
|
||||
"counterfeit_stash1",
|
||||
"counterfeit_stash2",
|
||||
"counterfeit_stash3"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse1.Counterfeit.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse1.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.Counterfeit.stage1,
|
||||
BikerClubhouse1.Counterfeit.stage2,
|
||||
BikerClubhouse1.Counterfeit.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Documents = {
|
||||
none = "",
|
||||
stage1 = "id_stash1",
|
||||
stage2 = {
|
||||
"id_stash1",
|
||||
"id_stash2"
|
||||
},
|
||||
stage3 = {
|
||||
"id_stash1",
|
||||
"id_stash2",
|
||||
"id_stash3"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse1.Documents.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse1.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse1.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse1.interiorId, {
|
||||
BikerClubhouse1.Documents.stage1,
|
||||
BikerClubhouse1.Documents.stage2,
|
||||
BikerClubhouse1.Documents.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
BikerClubhouse1.Ipl.Interior.Load()
|
||||
|
||||
BikerClubhouse1.Walls.Set(BikerClubhouse1.Walls.plain, BikerClubhouse1.Walls.Color.brown)
|
||||
|
||||
BikerClubhouse1.Furnitures.Set(BikerClubhouse1.Furnitures.A, 3)
|
||||
BikerClubhouse1.Decoration.Set(BikerClubhouse1.Decoration.A)
|
||||
BikerClubhouse1.Mural.Set(BikerClubhouse1.Mural.rideFree)
|
||||
|
||||
BikerClubhouse1.ModBooth.Set(BikerClubhouse1.ModBooth.none)
|
||||
BikerClubhouse1.GunLocker.Set(BikerClubhouse1.GunLocker.none)
|
||||
|
||||
BikerClubhouse1.Meth.Set(BikerClubhouse1.Meth.none)
|
||||
BikerClubhouse1.Cash.Set(BikerClubhouse1.Cash.none)
|
||||
BikerClubhouse1.Coke.Set(BikerClubhouse1.Coke.none)
|
||||
BikerClubhouse1.Weed.Set(BikerClubhouse1.Weed.none)
|
||||
BikerClubhouse1.Counterfeit.Set(BikerClubhouse1.Counterfeit.none)
|
||||
BikerClubhouse1.Documents.Set(BikerClubhouse1.Documents.none)
|
||||
|
||||
RefreshInterior(BikerClubhouse1.interiorId)
|
||||
end
|
||||
}
|
||||
402
resources/[housing]/bob74_ipl/dlc_bikers/clubhouse2.lua
Normal file
402
resources/[housing]/bob74_ipl/dlc_bikers/clubhouse2.lua
Normal file
|
|
@ -0,0 +1,402 @@
|
|||
-- Clubhouse2: 998.4809, -3164.711, -38.90733
|
||||
exports('GetBikerClubhouse2Object', function()
|
||||
return BikerClubhouse2
|
||||
end)
|
||||
|
||||
BikerClubhouse2 = {
|
||||
interiorId = 246529,
|
||||
|
||||
Ipl = {
|
||||
Interior = {
|
||||
ipl = "bkr_biker_interior_placement_interior_1_biker_dlc_int_02_milo",
|
||||
|
||||
Load = function()
|
||||
EnableIpl(BikerClubhouse2.Ipl.Interior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(BikerClubhouse2.Ipl.Interior.ipl, false)
|
||||
end
|
||||
}
|
||||
},
|
||||
Walls = {
|
||||
brick = "walls_01",
|
||||
plain = "walls_02",
|
||||
Color = {
|
||||
greenAndGray = 1,
|
||||
multicolor = 2,
|
||||
orangeAndGray = 3,
|
||||
blue = 4,
|
||||
lightBlueAndSable = 5,
|
||||
greenAndRed = 6,
|
||||
yellowAndGray = 7,
|
||||
red = 8,
|
||||
fuchsiaAndGray = 9
|
||||
},
|
||||
|
||||
Set = function(walls, color, refresh)
|
||||
if color == nil then
|
||||
color = 0
|
||||
end
|
||||
|
||||
BikerClubhouse2.Walls.Clear(false)
|
||||
|
||||
SetIplPropState(BikerClubhouse2.interiorId, walls, true, refresh)
|
||||
SetInteriorEntitySetColor(BikerClubhouse2.interiorId, walls, color)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.Walls.brick,
|
||||
BikerClubhouse2.Walls.plain
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
LowerWalls = {
|
||||
default = "lower_walls_default",
|
||||
|
||||
SetColor = function(color, refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, BikerClubhouse2.LowerWalls.default, true, refresh)
|
||||
SetInteriorEntitySetColor(BikerClubhouse2.interiorId, BikerClubhouse2.LowerWalls.default, color)
|
||||
end,
|
||||
},
|
||||
Furnitures = {
|
||||
A = "furnishings_01",
|
||||
B = "furnishings_02",
|
||||
-- Colors for "furnishings_01" only
|
||||
Color = {
|
||||
turquoise = 0,
|
||||
darkBrown = 1,
|
||||
brown = 2,
|
||||
-- 3 equal 1
|
||||
brown2 = 4,
|
||||
gray = 5,
|
||||
red = 6,
|
||||
darkGray = 7,
|
||||
black = 8,
|
||||
red2 = 9
|
||||
},
|
||||
|
||||
Set = function(furn, color, refresh)
|
||||
if color == nil then
|
||||
color = 0
|
||||
end
|
||||
|
||||
BikerClubhouse2.Furnitures.Clear(false)
|
||||
|
||||
SetIplPropState(BikerClubhouse2.interiorId, furn, true, refresh)
|
||||
SetInteriorEntitySetColor(BikerClubhouse2.interiorId, furn, color)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.Furnitures.A,
|
||||
BikerClubhouse2.Furnitures.B
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Decoration = {
|
||||
A = "decorative_01",
|
||||
B = "decorative_02",
|
||||
|
||||
Set = function(deco, refresh)
|
||||
BikerClubhouse2.Decoration.Clear(false)
|
||||
|
||||
SetIplPropState(BikerClubhouse2.interiorId, deco, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.Decoration.A,
|
||||
BikerClubhouse2.Decoration.B
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Mural = {
|
||||
none = "",
|
||||
death1 = "mural_01",
|
||||
cityColor1 = "mural_02",
|
||||
death2 = "mural_03",
|
||||
cityColor2 = "mural_04",
|
||||
graffitis = "mural_05",
|
||||
cityColor3 = "mural_06",
|
||||
cityColor4 = "mural_07",
|
||||
cityBlack = "mural_08",
|
||||
death3 = "mural_09",
|
||||
|
||||
Set = function(mural, refresh)
|
||||
BikerClubhouse2.Mural.Clear(false)
|
||||
|
||||
if mural ~= "" then
|
||||
SetIplPropState(BikerClubhouse2.interiorId, mural, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse2.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.Mural.death1,
|
||||
BikerClubhouse2.Mural.cityColor1,
|
||||
BikerClubhouse2.Mural.death2,
|
||||
BikerClubhouse2.Mural.cityColor2,
|
||||
BikerClubhouse2.Mural.graffitis,
|
||||
BikerClubhouse2.Mural.cityColor3,
|
||||
BikerClubhouse2.Mural.cityColor4,
|
||||
BikerClubhouse2.Mural.cityBlack,
|
||||
BikerClubhouse2.Mural.death3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
GunLocker = {
|
||||
on = "gun_locker",
|
||||
off = "no_gun_locker",
|
||||
|
||||
Set = function(locker, refresh)
|
||||
BikerClubhouse2.GunLocker.Clear(false)
|
||||
|
||||
if locker ~= "" then
|
||||
SetIplPropState(BikerClubhouse2.interiorId, locker, true, refresh)
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.GunLocker.on,
|
||||
BikerClubhouse2.GunLocker.off
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
ModBooth = {
|
||||
none = "",
|
||||
on = "mod_booth",
|
||||
off = "no_mod_booth",
|
||||
|
||||
Set = function(mod, refresh)
|
||||
BikerClubhouse2.ModBooth.Clear(false)
|
||||
|
||||
if mod ~= "" then
|
||||
SetIplPropState(BikerClubhouse2.interiorId, mod, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse2.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.ModBooth.on,
|
||||
BikerClubhouse2.ModBooth.off
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Meth = {
|
||||
none = "",
|
||||
stage1 = "meth_small",
|
||||
stage2 = {
|
||||
"meth_small",
|
||||
"meth_medium"
|
||||
},
|
||||
stage3 = {
|
||||
"meth_small",
|
||||
"meth_medium",
|
||||
"meth_large"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse2.Meth.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse2.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.Meth.stage1,
|
||||
BikerClubhouse2.Meth.stage2,
|
||||
BikerClubhouse2.Meth.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Cash = {
|
||||
none = "",
|
||||
stage1 = "cash_small",
|
||||
stage2 = {
|
||||
"cash_small",
|
||||
"cash_medium"
|
||||
},
|
||||
stage3 = {
|
||||
"cash_small",
|
||||
"cash_medium",
|
||||
"cash_large"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse2.Cash.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse2.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.Cash.stage1,
|
||||
BikerClubhouse2.Cash.stage2,
|
||||
BikerClubhouse2.Cash.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Weed = {
|
||||
none = "",
|
||||
stage1 = "weed_small",
|
||||
stage2 = {
|
||||
"weed_small",
|
||||
"weed_medium"
|
||||
},
|
||||
stage3 = {
|
||||
"weed_small",
|
||||
"weed_medium",
|
||||
"weed_large"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse2.Weed.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse2.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.Weed.stage1,
|
||||
BikerClubhouse2.Weed.stage2,
|
||||
BikerClubhouse2.Weed.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Coke = {
|
||||
none = "",
|
||||
stage1 = "coke_small",
|
||||
stage2 = {
|
||||
"coke_small",
|
||||
"coke_medium"
|
||||
},
|
||||
stage3 = {
|
||||
"coke_small",
|
||||
"coke_medium",
|
||||
"coke_large"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse2.Coke.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse2.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.Coke.stage1,
|
||||
BikerClubhouse2.Coke.stage2,
|
||||
BikerClubhouse2.Coke.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Counterfeit = {
|
||||
none = "",
|
||||
stage1 = "counterfeit_small",
|
||||
stage2 = {
|
||||
"counterfeit_small",
|
||||
"counterfeit_medium"
|
||||
},
|
||||
stage3 = {
|
||||
"counterfeit_small",
|
||||
"counterfeit_medium",
|
||||
"counterfeit_large"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse2.Counterfeit.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerClubhouse2.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.Counterfeit.stage1,
|
||||
BikerClubhouse2.Counterfeit.stage2,
|
||||
BikerClubhouse2.Counterfeit.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Documents = {
|
||||
none = "",
|
||||
stage1 = "id_small",
|
||||
stage2 = {
|
||||
"id_small",
|
||||
"id_medium"
|
||||
},
|
||||
stage3 = {
|
||||
"id_small",
|
||||
"id_medium",
|
||||
"id_large"
|
||||
},
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerClubhouse2.Documents.Clear(false)
|
||||
|
||||
if stage ~= "" then
|
||||
SetIplPropState(BikerClubhouse2.interiorId, stage, true, refresh)
|
||||
else
|
||||
if refresh then RefreshInterior(BikerClubhouse2.interiorId) end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerClubhouse2.interiorId, {
|
||||
BikerClubhouse2.Documents.stage1,
|
||||
BikerClubhouse2.Documents.stage2,
|
||||
BikerClubhouse2.Documents.stage3
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
BikerClubhouse2.Ipl.Interior.Load()
|
||||
|
||||
BikerClubhouse2.Walls.Set(BikerClubhouse2.Walls.brick, BikerClubhouse2.Walls.Color.red)
|
||||
BikerClubhouse2.LowerWalls.SetColor(BikerClubhouse2.Walls.Color.red)
|
||||
|
||||
BikerClubhouse2.Furnitures.Set(BikerClubhouse2.Furnitures.B, BikerClubhouse2.Furnitures.Color.black)
|
||||
BikerClubhouse2.Decoration.Set(BikerClubhouse2.Decoration.B)
|
||||
BikerClubhouse2.Mural.Set(BikerClubhouse2.Mural.death3)
|
||||
|
||||
BikerClubhouse2.ModBooth.Set(BikerClubhouse2.ModBooth.off)
|
||||
BikerClubhouse2.GunLocker.Set(BikerClubhouse2.GunLocker.off)
|
||||
|
||||
BikerClubhouse2.Meth.Set(BikerClubhouse2.Meth.none)
|
||||
BikerClubhouse2.Cash.Set(BikerClubhouse2.Cash.none)
|
||||
BikerClubhouse2.Coke.Set(BikerClubhouse2.Coke.none)
|
||||
BikerClubhouse2.Weed.Set(BikerClubhouse2.Weed.none)
|
||||
BikerClubhouse2.Counterfeit.Set(BikerClubhouse2.Counterfeit.none)
|
||||
BikerClubhouse2.Documents.Set(BikerClubhouse2.Documents.none)
|
||||
|
||||
RefreshInterior(BikerClubhouse2.interiorId)
|
||||
end
|
||||
}
|
||||
98
resources/[housing]/bob74_ipl/dlc_bikers/cocaine.lua
Normal file
98
resources/[housing]/bob74_ipl/dlc_bikers/cocaine.lua
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
-- Cocaine lockup: 1093.6, -3196.6, -38.99841
|
||||
exports('GetBikerCocaineObject', function()
|
||||
return BikerCocaine
|
||||
end)
|
||||
|
||||
BikerCocaine = {
|
||||
interiorId = 247553,
|
||||
|
||||
Ipl = {
|
||||
Interior = {
|
||||
ipl = "bkr_biker_interior_placement_interior_4_biker_dlc_int_ware03_milo",
|
||||
|
||||
Load = function()
|
||||
EnableIpl(BikerCocaine.Ipl.Interior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(BikerCocaine.Ipl.Interior.ipl, false)
|
||||
end
|
||||
}
|
||||
},
|
||||
Style = {
|
||||
none = "",
|
||||
basic = {
|
||||
"set_up",
|
||||
"equipment_basic",
|
||||
"coke_press_basic",
|
||||
"production_basic",
|
||||
"table_equipment"
|
||||
},
|
||||
upgrade = {
|
||||
"set_up",
|
||||
"equipment_upgrade",
|
||||
"coke_press_upgrade",
|
||||
"production_upgrade",
|
||||
"table_equipment_upgrade"
|
||||
},
|
||||
|
||||
Set = function(style, refresh)
|
||||
BikerCocaine.Style.Clear(false)
|
||||
|
||||
if style ~= "" then
|
||||
SetIplPropState(BikerCocaine.interiorId, style, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerCocaine.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerCocaine.interiorId, {
|
||||
BikerCocaine.Style.basic,
|
||||
BikerCocaine.Style.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Security = {
|
||||
none = "",
|
||||
basic = "security_low",
|
||||
upgrade = "security_high",
|
||||
|
||||
Set = function(security, refresh)
|
||||
BikerCocaine.Security.Clear(false)
|
||||
|
||||
if security ~= "" then
|
||||
SetIplPropState(BikerCocaine.interiorId, security, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerCocaine.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerCocaine.interiorId, {
|
||||
BikerCocaine.Security.basic,
|
||||
BikerCocaine.Security.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Details = {
|
||||
cokeBasic1 = "coke_cut_01", -- On the basic tables
|
||||
cokeBasic2 = "coke_cut_02", -- On the basic tables
|
||||
cokeBasic3 = "coke_cut_03", -- On the basic tables
|
||||
cokeUpgrade1 = "coke_cut_04", -- On the upgraded tables
|
||||
cokeUpgrade2 = "coke_cut_05", -- On the upgraded tables
|
||||
|
||||
Enable = function(details, state, refresh)
|
||||
SetIplPropState(BikerCocaine.interiorId, details, state, refresh)
|
||||
end
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
BikerCocaine.Ipl.Interior.Load()
|
||||
BikerCocaine.Style.Set(BikerCocaine.Style.basic)
|
||||
BikerCocaine.Security.Set(BikerCocaine.Security.none)
|
||||
|
||||
RefreshInterior(BikerCocaine.interiorId)
|
||||
end
|
||||
}
|
||||
206
resources/[housing]/bob74_ipl/dlc_bikers/counterfeit_cash.lua
Normal file
206
resources/[housing]/bob74_ipl/dlc_bikers/counterfeit_cash.lua
Normal file
|
|
@ -0,0 +1,206 @@
|
|||
-- Counterfeit cash factory: 1121.897, -3195.338, -40.4025
|
||||
exports('GetBikerCounterfeitObject', function()
|
||||
return BikerCounterfeit
|
||||
end)
|
||||
|
||||
BikerCounterfeit = {
|
||||
interiorId = 247809,
|
||||
|
||||
Ipl = {
|
||||
Interior = {
|
||||
ipl = "bkr_biker_interior_placement_interior_5_biker_dlc_int_ware04_milo",
|
||||
|
||||
Load = function()
|
||||
EnableIpl(BikerCounterfeit.Ipl.Interior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(BikerCounterfeit.Ipl.Interior.ipl, false)
|
||||
end
|
||||
}
|
||||
},
|
||||
Printer = {
|
||||
none = "",
|
||||
basic = "counterfeit_standard_equip_no_prod",
|
||||
basicProd = "counterfeit_standard_equip",
|
||||
upgrade = "counterfeit_upgrade_equip_no_prod",
|
||||
upgradeProd = "counterfeit_upgrade_equip",
|
||||
|
||||
Set = function(printer, refresh)
|
||||
BikerCounterfeit.Printer.Clear(false)
|
||||
|
||||
if printer ~= "" then
|
||||
SetIplPropState(BikerCounterfeit.interiorId, printer, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerCounterfeit.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerCounterfeit.interiorId, {
|
||||
BikerCounterfeit.Printer.basic,
|
||||
BikerCounterfeit.Printer.basicProd,
|
||||
BikerCounterfeit.Printer.upgrade,
|
||||
BikerCounterfeit.Printer.upgradeProd
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Security = {
|
||||
basic = "counterfeit_low_security",
|
||||
upgrade = "counterfeit_security",
|
||||
|
||||
Set = function(security, refresh)
|
||||
BikerCounterfeit.Security.Clear(false)
|
||||
|
||||
SetIplPropState(BikerCounterfeit.interiorId, security, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerCounterfeit.interiorId, {
|
||||
BikerCounterfeit.Security.basic,
|
||||
BikerCounterfeit.Security.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Dryer1 = {
|
||||
none = "",
|
||||
on = "dryera_on",
|
||||
off = "dryera_off",
|
||||
open = "dryera_open",
|
||||
|
||||
Set = function(dryer, refresh)
|
||||
BikerCounterfeit.Dryer1.Clear(false)
|
||||
|
||||
if dryer ~= "" then
|
||||
SetIplPropState(BikerCounterfeit.interiorId, dryer, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerCounterfeit.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerCounterfeit.interiorId, {
|
||||
BikerCounterfeit.Dryer1.on,
|
||||
BikerCounterfeit.Dryer1.off,
|
||||
BikerCounterfeit.Dryer1.open
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Dryer2 = {
|
||||
none = "",
|
||||
on = "dryerb_on",
|
||||
off = "dryerb_off",
|
||||
open = "dryerb_open",
|
||||
|
||||
Set = function(dryer, refresh)
|
||||
BikerCounterfeit.Dryer2.Clear(false)
|
||||
|
||||
if dryer ~= "" then
|
||||
SetIplPropState(BikerCounterfeit.interiorId, dryer, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerCounterfeit.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerCounterfeit.interiorId, {
|
||||
BikerCounterfeit.Dryer2.on,
|
||||
BikerCounterfeit.Dryer2.off,
|
||||
BikerCounterfeit.Dryer2.open
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Dryer3 = {
|
||||
none = "",
|
||||
on = "dryerc_on",
|
||||
off = "dryerc_off",
|
||||
open = "dryerc_open",
|
||||
|
||||
Set = function(dryer, refresh)
|
||||
BikerCounterfeit.Dryer3.Clear(false)
|
||||
|
||||
if dryer ~= "" then
|
||||
SetIplPropState(BikerCounterfeit.interiorId, dryer, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerCounterfeit.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerCounterfeit.interiorId, {
|
||||
BikerCounterfeit.Dryer3.on,
|
||||
BikerCounterfeit.Dryer3.off,
|
||||
BikerCounterfeit.Dryer3.open
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Dryer4 = {
|
||||
none = "",
|
||||
on = "dryerd_on",
|
||||
off = "dryerd_off",
|
||||
open = "dryerd_open",
|
||||
|
||||
Set = function(dryer, refresh)
|
||||
BikerCounterfeit.Dryer4.Clear(false)
|
||||
|
||||
if dryer ~= "" then
|
||||
SetIplPropState(BikerCounterfeit.interiorId, dryer, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerCounterfeit.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerCounterfeit.interiorId, {
|
||||
BikerCounterfeit.Dryer4.on,
|
||||
BikerCounterfeit.Dryer4.off,
|
||||
BikerCounterfeit.Dryer4.open
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Details = {
|
||||
Cash10 = {
|
||||
A = "counterfeit_cashpile10a",
|
||||
B = "counterfeit_cashpile10b",
|
||||
C = "counterfeit_cashpile10c",
|
||||
D = "counterfeit_cashpile10d",
|
||||
},
|
||||
Cash20 = {
|
||||
A = "counterfeit_cashpile20a",
|
||||
B = "counterfeit_cashpile20b",
|
||||
C = "counterfeit_cashpile20c",
|
||||
D = "counterfeit_cashpile20d",
|
||||
},
|
||||
Cash100 = {
|
||||
A = "counterfeit_cashpile100a",
|
||||
B = "counterfeit_cashpile100b",
|
||||
C = "counterfeit_cashpile100c",
|
||||
D = "counterfeit_cashpile100d",
|
||||
},
|
||||
chairs = "special_chairs", -- Brown chairs at the end of the room
|
||||
cutter = "money_cutter", -- Money cutting machine
|
||||
furnitures = "counterfeit_setup", -- Paper, counting machines, cups
|
||||
|
||||
Enable = function(details, state, refresh)
|
||||
SetIplPropState(BikerCounterfeit.interiorId, details, state, refresh)
|
||||
end
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
BikerCounterfeit.Ipl.Interior.Load()
|
||||
BikerCounterfeit.Printer.Set(BikerCounterfeit.Printer.basicProd)
|
||||
BikerCounterfeit.Security.Set(BikerCounterfeit.Security.upgrade)
|
||||
BikerCounterfeit.Dryer1.Set(BikerCounterfeit.Dryer1.open)
|
||||
BikerCounterfeit.Dryer2.Set(BikerCounterfeit.Dryer2.on)
|
||||
BikerCounterfeit.Dryer3.Set(BikerCounterfeit.Dryer3.on)
|
||||
BikerCounterfeit.Dryer4.Set(BikerCounterfeit.Dryer4.on)
|
||||
BikerCounterfeit.Details.Enable(BikerCounterfeit.Details.cutter, true)
|
||||
BikerCounterfeit.Details.Enable(BikerCounterfeit.Details.furnitures, true)
|
||||
BikerCounterfeit.Details.Enable(BikerCounterfeit.Details.Cash100, true)
|
||||
|
||||
RefreshInterior(BikerCounterfeit.interiorId)
|
||||
end
|
||||
}
|
||||
107
resources/[housing]/bob74_ipl/dlc_bikers/document_forgery.lua
Normal file
107
resources/[housing]/bob74_ipl/dlc_bikers/document_forgery.lua
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
-- Document forgery: 1165, -3196.6, -39.01306
|
||||
exports('GetBikerDocumentForgeryObject', function()
|
||||
return BikerDocumentForgery
|
||||
end)
|
||||
|
||||
BikerDocumentForgery = {
|
||||
interiorId = 246785,
|
||||
|
||||
Ipl = {
|
||||
Interior = {
|
||||
ipl = "bkr_biker_interior_placement_interior_6_biker_dlc_int_ware05_milo",
|
||||
|
||||
Load = function()
|
||||
EnableIpl(BikerDocumentForgery.Ipl.Interior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(BikerDocumentForgery.Ipl.Interior.ipl, false)
|
||||
end
|
||||
}
|
||||
},
|
||||
Style = {
|
||||
basic = "interior_basic",
|
||||
upgrade = "interior_upgrade",
|
||||
|
||||
Set = function(style, refresh)
|
||||
BikerDocumentForgery.Style.Clear(false)
|
||||
|
||||
SetIplPropState(BikerDocumentForgery.interiorId, style, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerDocumentForgery.interiorId, {
|
||||
BikerDocumentForgery.Style.basic,
|
||||
BikerDocumentForgery.Style.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Equipment = {
|
||||
none = "",
|
||||
basic = "equipment_basic",
|
||||
upgrade = "equipment_upgrade",
|
||||
|
||||
Set = function(eqpt, refresh)
|
||||
BikerDocumentForgery.Equipment.Clear(false)
|
||||
|
||||
if eqpt ~= "" then
|
||||
SetIplPropState(BikerDocumentForgery.interiorId, eqpt, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerDocumentForgery.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerDocumentForgery.interiorId, {
|
||||
BikerDocumentForgery.Equipment.basic,
|
||||
BikerDocumentForgery.Equipment.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Security = {
|
||||
basic = "security_low",
|
||||
upgrade = "security_high",
|
||||
|
||||
Set = function(security, refresh)
|
||||
BikerDocumentForgery.Security.Clear(false)
|
||||
|
||||
SetIplPropState(BikerDocumentForgery.interiorId, security, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerDocumentForgery.interiorId, {
|
||||
BikerDocumentForgery.Security.basic,
|
||||
BikerDocumentForgery.Security.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Details = {
|
||||
Chairs = {
|
||||
A = "chair01",
|
||||
B = "chair02",
|
||||
C = "chair03",
|
||||
D = "chair04",
|
||||
E = "chair05",
|
||||
F = "chair06",
|
||||
G = "chair07"
|
||||
},
|
||||
production = "production", -- Papers, pencils
|
||||
furnitures = "set_up", -- Printers, shredders
|
||||
clutter = "clutter", -- Pizza boxes, cups
|
||||
|
||||
Enable = function(details, state, refresh)
|
||||
SetIplPropState(BikerDocumentForgery.interiorId, details, state, refresh)
|
||||
end
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
BikerDocumentForgery.Ipl.Interior.Load()
|
||||
BikerDocumentForgery.Style.Set(BikerDocumentForgery.Style.basic)
|
||||
BikerDocumentForgery.Security.Set(BikerDocumentForgery.Security.basic)
|
||||
BikerDocumentForgery.Equipment.Set(BikerDocumentForgery.Equipment.basic)
|
||||
BikerDocumentForgery.Details.Enable(BikerDocumentForgery.Details.production, false)
|
||||
BikerDocumentForgery.Details.Enable(BikerDocumentForgery.Details.furnitures, false)
|
||||
BikerDocumentForgery.Details.Enable(BikerDocumentForgery.Details.clutter, false)
|
||||
BikerDocumentForgery.Details.Enable(BikerDocumentForgery.Details.Chairs, true)
|
||||
|
||||
RefreshInterior(BikerDocumentForgery.interiorId)
|
||||
end
|
||||
}
|
||||
608
resources/[housing]/bob74_ipl/dlc_bikers/gang.lua
Normal file
608
resources/[housing]/bob74_ipl/dlc_bikers/gang.lua
Normal file
|
|
@ -0,0 +1,608 @@
|
|||
exports('GetBikerGangObject', function()
|
||||
return BikerGang
|
||||
end)
|
||||
|
||||
AddEventHandler('onClientResourceStop', function(res)
|
||||
if GetCurrentResourceName() ~= res then
|
||||
return
|
||||
end
|
||||
|
||||
BikerGang.Clubhouse.ClearAll()
|
||||
end)
|
||||
|
||||
BikerGang = {
|
||||
Name = {
|
||||
Colors = {
|
||||
black = 0,
|
||||
gray = 1,
|
||||
white = 2,
|
||||
orange = 3,
|
||||
red = 4,
|
||||
green = 5,
|
||||
yellow = 6,
|
||||
blue = 7
|
||||
},
|
||||
Fonts = {
|
||||
font1 = 0,
|
||||
font2 = 1,
|
||||
font3 = 2,
|
||||
font4 = 3,
|
||||
font5 = 4,
|
||||
font6 = 5,
|
||||
font7 = 6,
|
||||
font8 = 7,
|
||||
font9 = 8,
|
||||
font10 = 9,
|
||||
font11 = 10,
|
||||
font12 = 11,
|
||||
font13 = 12
|
||||
},
|
||||
name = "",
|
||||
color = 0,
|
||||
font = 0,
|
||||
|
||||
Set = function(name, color, font)
|
||||
BikerGang.Name.name = name
|
||||
BikerGang.Name.color = color
|
||||
BikerGang.Name.font = font
|
||||
BikerGang.Clubhouse.ClubName.stage = 0
|
||||
end
|
||||
},
|
||||
Emblem = {
|
||||
Logo = {
|
||||
eagle = "MPClubPreset1",
|
||||
skull = "MPClubPreset2",
|
||||
ace = "MPClubPreset3",
|
||||
brassKnuckles = "MPClubPreset4",
|
||||
UR = "MPClubPreset5",
|
||||
fox = "MPClubPreset6",
|
||||
city = "MPClubPreset7",
|
||||
dices = "MPClubPreset8",
|
||||
target = "MPClubPreset9"
|
||||
},
|
||||
emblem = "MPClubPreset1",
|
||||
rot = 90.0, -- Rotation for 0.0 to 360.0
|
||||
|
||||
Set = function(logo, rotation)
|
||||
BikerGang.Emblem.emblem = logo
|
||||
BikerGang.Emblem.rot = rotation
|
||||
BikerGang.Clubhouse.Emblem.stage = 0
|
||||
end
|
||||
},
|
||||
Clubhouse = {
|
||||
interiorId1 = 246273,
|
||||
interiorId2 = 246529,
|
||||
|
||||
Members = {
|
||||
President = {
|
||||
needToLoad = false,
|
||||
loaded = false,
|
||||
renderId = -1,
|
||||
textureDict = "",
|
||||
pedheadshot = -1,
|
||||
target = "memorial_wall_president",
|
||||
prop = "bkr_prop_rt_memorial_president",
|
||||
stage = 0,
|
||||
|
||||
Init = function()
|
||||
DrawEmptyRect(BikerGang.Clubhouse.Members.President.target, BikerGang.Clubhouse.Members.President.prop)
|
||||
end,
|
||||
Enable = function(state)
|
||||
BikerGang.Clubhouse.Members.President.needToLoad = state
|
||||
end,
|
||||
Set = function(ped)
|
||||
BikerGang.Clubhouse.Members.Set(BikerGang.Clubhouse.Members.President, ped)
|
||||
end,
|
||||
Clear = function()
|
||||
BikerGang.Clubhouse.Members.Clear(BikerGang.Clubhouse.Members.President)
|
||||
end
|
||||
},
|
||||
VicePresident = {
|
||||
needToLoad = false,
|
||||
loaded = false,
|
||||
renderId = -1,
|
||||
textureDict = "",
|
||||
pedheadshot = -1,
|
||||
target = "memorial_wall_vice_president",
|
||||
prop = "bkr_prop_rt_memorial_vice_pres",
|
||||
stage = 0,
|
||||
|
||||
Init = function()
|
||||
DrawEmptyRect(BikerGang.Clubhouse.Members.VicePresident.target, BikerGang.Clubhouse.Members.VicePresident.prop)
|
||||
end,
|
||||
Enable = function(state)
|
||||
BikerGang.Clubhouse.Members.VicePresident.needToLoad = state
|
||||
end,
|
||||
Set = function(ped)
|
||||
BikerGang.Clubhouse.Members.Set(BikerGang.Clubhouse.Members.VicePresident, ped)
|
||||
end,
|
||||
Clear = function()
|
||||
BikerGang.Clubhouse.Members.Clear(BikerGang.Clubhouse.Members.VicePresident)
|
||||
end
|
||||
},
|
||||
RoadCaptain = {
|
||||
needToLoad = false,
|
||||
loaded = false,
|
||||
renderId = -1,
|
||||
textureDict = "",
|
||||
pedheadshot = -1,
|
||||
target = "memorial_wall_active_01",
|
||||
prop = "bkr_prop_rt_memorial_active_01",
|
||||
stage = 0,
|
||||
|
||||
Init = function()
|
||||
DrawEmptyRect(BikerGang.Clubhouse.Members.RoadCaptain.target, BikerGang.Clubhouse.Members.RoadCaptain.prop)
|
||||
end,
|
||||
Enable = function(state)
|
||||
BikerGang.Clubhouse.Members.RoadCaptain.needToLoad = state
|
||||
end,
|
||||
Set = function(ped)
|
||||
BikerGang.Clubhouse.Members.Set(BikerGang.Clubhouse.Members.RoadCaptain, ped)
|
||||
end,
|
||||
Clear = function()
|
||||
BikerGang.Clubhouse.Members.Clear(BikerGang.Clubhouse.Members.RoadCaptain)
|
||||
end
|
||||
},
|
||||
Enforcer = {
|
||||
needToLoad = false,
|
||||
loaded = false,
|
||||
renderId = -1,
|
||||
textureDict = "",
|
||||
pedheadshot = -1,
|
||||
target = "memorial_wall_active_02",
|
||||
prop = "bkr_prop_rt_memorial_active_02",
|
||||
stage = 0,
|
||||
|
||||
Init = function()
|
||||
DrawEmptyRect(BikerGang.Clubhouse.Members.Enforcer.target, BikerGang.Clubhouse.Members.Enforcer.prop)
|
||||
end,
|
||||
Enable = function(state)
|
||||
BikerGang.Clubhouse.Members.Enforcer.needToLoad = state
|
||||
end,
|
||||
Set = function(ped)
|
||||
BikerGang.Clubhouse.Members.Set(BikerGang.Clubhouse.Members.Enforcer, ped)
|
||||
end,
|
||||
Clear = function()
|
||||
BikerGang.Clubhouse.Members.Clear(BikerGang.Clubhouse.Members.Enforcer)
|
||||
end
|
||||
},
|
||||
SergeantAtArms = {
|
||||
needToLoad = false,
|
||||
loaded = false,
|
||||
renderId = -1,
|
||||
textureDict = "",
|
||||
pedheadshot = -1,
|
||||
target = "memorial_wall_active_03",
|
||||
prop = "bkr_prop_rt_memorial_active_03",
|
||||
stage = 0,
|
||||
|
||||
Init = function()
|
||||
DrawEmptyRect(BikerGang.Clubhouse.Members.SergeantAtArms.target, BikerGang.Clubhouse.Members.SergeantAtArms.prop)
|
||||
end,
|
||||
Enable = function(state)
|
||||
BikerGang.Clubhouse.Members.SergeantAtArms.needToLoad = state
|
||||
end,
|
||||
Set = function(ped)
|
||||
BikerGang.Clubhouse.Members.Set(BikerGang.Clubhouse.Members.SergeantAtArms, ped)
|
||||
end,
|
||||
Clear = function()
|
||||
BikerGang.Clubhouse.Members.Clear(BikerGang.Clubhouse.Members.SergeantAtArms)
|
||||
end
|
||||
},
|
||||
Set = function(member, ped)
|
||||
member.Clear()
|
||||
member.pedheadshot = GetPedheadshot(ped)
|
||||
|
||||
if member.pedheadshot ~= -1 then
|
||||
member.textureDict = GetPedheadshotTxdString(member.pedheadshot)
|
||||
|
||||
local IsTextureDictLoaded = LoadStreamedTextureDict(member.textureDict)
|
||||
|
||||
if not IsTextureDictLoaded then
|
||||
print("ERROR: BikerClubhouseDrawMembers - Textures dictionnary \"" .. tostring(member.textureDict) .. "\" cannot be loaded.")
|
||||
end
|
||||
else
|
||||
print("ERROR: BikerClubhouseDrawMembers - PedHeadShot not ready.")
|
||||
end
|
||||
end,
|
||||
Clear = function(member)
|
||||
if IsNamedRendertargetRegistered(member.target) then
|
||||
ReleaseNamedRendertarget(GetHashKey(member.target))
|
||||
end
|
||||
|
||||
if member.pedheadshot ~= -1 then
|
||||
UnregisterPedheadshot(member.pedheadshot)
|
||||
end
|
||||
|
||||
if member.textureDict ~= "" then
|
||||
SetStreamedTextureDictAsNoLongerNeeded(member.textureDict)
|
||||
end
|
||||
|
||||
member.renderId = -1
|
||||
member.textureDict = ""
|
||||
member.pedheadshot = -1
|
||||
member.stage = 0
|
||||
end
|
||||
},
|
||||
|
||||
ClubName = {
|
||||
needToLoad = false,
|
||||
loaded = false,
|
||||
target = "clubname_blackboard_01a",
|
||||
prop = "bkr_prop_clubhouse_blackboard_01a",
|
||||
renderId = -1,
|
||||
movieId = -1,
|
||||
stage = 0,
|
||||
|
||||
Init = function()
|
||||
DrawEmptyRect(BikerGang.Clubhouse.ClubName.target, BikerGang.Clubhouse.ClubName.prop)
|
||||
end,
|
||||
Enable = function(state)
|
||||
BikerGang.Clubhouse.ClubName.needToLoad = state
|
||||
end,
|
||||
Clear = function()
|
||||
if IsNamedRendertargetRegistered(BikerGang.Clubhouse.ClubName.target) then
|
||||
ReleaseNamedRendertarget(GetHashKey(BikerGang.Clubhouse.ClubName.target))
|
||||
end
|
||||
|
||||
if HasScaleformMovieFilenameLoaded(BikerGang.Clubhouse.ClubName.movieId) then
|
||||
SetScaleformMovieAsNoLongerNeeded(BikerGang.Clubhouse.ClubName.movieId)
|
||||
end
|
||||
|
||||
BikerGang.Clubhouse.ClubName.renderId = -1
|
||||
BikerGang.Clubhouse.ClubName.movieId = -1
|
||||
BikerGang.Clubhouse.ClubName.stage = 0
|
||||
end
|
||||
},
|
||||
|
||||
Emblem = {
|
||||
needToLoad = false,
|
||||
loaded = false,
|
||||
target = "clubhouse_table",
|
||||
prop = "bkr_prop_rt_clubhouse_table",
|
||||
renderId = -1,
|
||||
movieId = -1,
|
||||
stage = 0,
|
||||
|
||||
Enable = function(state)
|
||||
BikerGang.Clubhouse.Emblem.needToLoad = state
|
||||
end,
|
||||
Init = function()
|
||||
DrawEmptyRect(BikerGang.Clubhouse.Emblem.target, BikerGang.Clubhouse.Emblem.prop)
|
||||
end,
|
||||
Clear = function()
|
||||
if IsNamedRendertargetRegistered(BikerGang.Clubhouse.Emblem.target) then
|
||||
ReleaseNamedRendertarget(GetHashKey(BikerGang.Clubhouse.Emblem.target))
|
||||
end
|
||||
|
||||
BikerGang.Clubhouse.Emblem.renderId = -1
|
||||
BikerGang.Clubhouse.Emblem.stage = 0
|
||||
end
|
||||
},
|
||||
|
||||
MissionsWall = {
|
||||
Missions = {
|
||||
Titles = {
|
||||
byThePoundUpper = "BDEAL_DEALN",
|
||||
byThePound = "DEAL_DEALN",
|
||||
prisonerOfWarUpper = "BIGM_RESCN",
|
||||
prisonerOfWar = "CELL_BIKER_RESC",
|
||||
gunsForHire = "LR_INTRO_ST",
|
||||
weaponOfChoice = "CELL_BIKER_CK",
|
||||
gunrunningUpper = "GB_BIGUNLOAD_U",
|
||||
gunrunning = "GB_BIGUNLOAD_T",
|
||||
nineTenthsOfTheLawUpper = "SB_INTRO_TITLE",
|
||||
nineTenthsOfTheLaw = "SB_MENU_TITLE",
|
||||
jailbreakUpper = "FP_INTRO_TITLE",
|
||||
jailbreak = "FP_MENU_TITLE",
|
||||
crackedUpper = "SC_INTRO_TITLE",
|
||||
cracked = "SC_MENU_TITLE",
|
||||
fragileGoodsUpper = "DV_SH_BIG",
|
||||
fragileGoods = "DV_SH_TITLE",
|
||||
torchedUpper = "BA_SH_BIG",
|
||||
torched = "BA_SH_TITLE",
|
||||
outriderUpper = "SHU_SH_BIG",
|
||||
outrider = "SHU_SH_TITLE"
|
||||
},
|
||||
Descriptions = {
|
||||
byThePound = "DEAL_DEALND",
|
||||
prisonerOfWar = "CELL_BIKER_RESD",
|
||||
gunsForHire = "GFH_MENU_DESC",
|
||||
weaponOfChoice = "CELL_BIKER_CKD",
|
||||
gunrunning = "GB_BIGUNLOAD_D",
|
||||
nineTenthsOfTheLaw = "SB_MENU_DESC",
|
||||
jailbreak = "FP_MENU_DESC",
|
||||
cracked = "SC_MENU_DESC",
|
||||
fragileGoods = "DV_MENU_DESC",
|
||||
torched = "BA_MENU_DESC",
|
||||
outrider = "SHU_MENU_DESC"
|
||||
},
|
||||
Pictures = {
|
||||
byThePound = "CHM_IMG0", -- Pickup car parked
|
||||
prisonerOfWar = "CHM_IMG8", -- Police with man down
|
||||
gunsForHire = "CHM_IMG4", -- Limo
|
||||
weaponOfChoice = "CHM_IMG10", -- Prisoner being beaten
|
||||
gunrunning = "CHM_IMG3", -- Shipment
|
||||
nineTenthsOfTheLaw = "CHM_IMG6", -- Wheeling
|
||||
jailbreak = "CHM_IMG5", -- Prison bus
|
||||
cracked = "CHM_IMG1", -- Safe
|
||||
fragileGoods = "CHM_IMG2", -- Lost Van
|
||||
torched = "CHM_IMG9", -- Explosive crate
|
||||
outrider = "CHM_IMG7" -- Sport ride
|
||||
},
|
||||
},
|
||||
needToLoad = false,
|
||||
loaded = false,
|
||||
target = "clubhouse_Plan_01a",
|
||||
prop = "bkr_prop_rt_clubhouse_plan_01a",
|
||||
renderId = -1,
|
||||
movieId = -1,
|
||||
stage = 0,
|
||||
Position = {
|
||||
none = -1,
|
||||
left = 0,
|
||||
middle = 1,
|
||||
right = 2
|
||||
},
|
||||
|
||||
Init = function()
|
||||
if not DrawEmptyRect(BikerGang.Clubhouse.MissionsWall.target, BikerGang.Clubhouse.MissionsWall.prop) then
|
||||
print("ERROR: BikerGang.Clubhouse.MissionsWall.Init() - DrawEmptyRect - Timeout")
|
||||
end
|
||||
end,
|
||||
Enable = function(state)
|
||||
BikerGang.Clubhouse.MissionsWall.needToLoad = state
|
||||
end,
|
||||
SelectMission = function(position)
|
||||
if BikerGang.Clubhouse.MissionsWall.movieId ~= -1 then
|
||||
BeginScaleformMovieMethod(BikerGang.Clubhouse.MissionsWall.movieId, "SET_SELECTED_MISSION")
|
||||
ScaleformMovieMethodAddParamInt(position) -- Mission index 0 to 2 (-1 = no mission)
|
||||
EndScaleformMovieMethod()
|
||||
end
|
||||
end,
|
||||
SetMission = function(position, title, desc, textDict, x, y)
|
||||
if BikerGang.Clubhouse.MissionsWall.needToLoad then
|
||||
if not HasScaleformMovieFilenameLoaded(BikerGang.Clubhouse.MissionsWall.movieId) then
|
||||
BikerGang.Clubhouse.MissionsWall.movieId = LoadScaleform("BIKER_MISSION_WALL")
|
||||
end
|
||||
|
||||
if BikerGang.Clubhouse.MissionsWall.movieId ~= -1 then
|
||||
if position > -1 then
|
||||
BeginScaleformMovieMethod(BikerGang.Clubhouse.MissionsWall.movieId, "SET_MISSION")
|
||||
ScaleformMovieMethodAddParamInt(position) -- Mission index 0 to 2 (-1 = no mission)
|
||||
ScaleformMovieMethodAddParamTextureNameString(title)
|
||||
ScaleformMovieMethodAddParamTextureNameString(desc)
|
||||
ScaleformMovieMethodAddParamPlayerNameString(textDict)
|
||||
ScaleformMovieMethodAddParamFloat(x) -- Mission 0: world coordinates X
|
||||
ScaleformMovieMethodAddParamFloat(y) -- Mission 0: world coordinates Y
|
||||
EndScaleformMovieMethod()
|
||||
else
|
||||
-- Remove all missions
|
||||
for key, value in pairs(BikerGang.Clubhouse.MissionsWall.Position) do
|
||||
BikerGang.Clubhouse.MissionsWall.RemoveMission(value)
|
||||
end
|
||||
|
||||
BikerGang.Clubhouse.MissionsWall.SelectMission(BikerGang.Clubhouse.MissionsWall.Position.none)
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
RemoveMission = function(position)
|
||||
BeginScaleformMovieMethod(BikerGang.Clubhouse.MissionsWall.movieId, "HIDE_MISSION")
|
||||
ScaleformMovieMethodAddParamInt(position)
|
||||
EndScaleformMovieMethod()
|
||||
end,
|
||||
Clear = function()
|
||||
-- Removing missions
|
||||
BikerGang.Clubhouse.MissionsWall.SelectMission(BikerGang.Clubhouse.MissionsWall.Position.none)
|
||||
BikerGang.Clubhouse.MissionsWall.SetMission(BikerGang.Clubhouse.MissionsWall.Position.none)
|
||||
|
||||
-- Releasing handles
|
||||
if IsNamedRendertargetRegistered(BikerGang.Clubhouse.MissionsWall.prop) then
|
||||
ReleaseNamedRendertarget(GetHashKey(BikerGang.Clubhouse.MissionsWall.prop))
|
||||
end
|
||||
|
||||
if HasScaleformMovieFilenameLoaded(BikerGang.Clubhouse.MissionsWall.movieId) then
|
||||
SetScaleformMovieAsNoLongerNeeded(BikerGang.Clubhouse.MissionsWall.movieId)
|
||||
end
|
||||
|
||||
-- Resetting
|
||||
BikerGang.Clubhouse.MissionsWall.renderId = -1
|
||||
BikerGang.Clubhouse.MissionsWall.movieId = -1
|
||||
BikerGang.Clubhouse.MissionsWall.stage = 0
|
||||
end
|
||||
},
|
||||
|
||||
ClearAll = function()
|
||||
BikerGang.Clubhouse.ClubName.Clear()
|
||||
BikerGang.Clubhouse.ClubName.loaded = false
|
||||
|
||||
BikerGang.Clubhouse.Emblem.Clear()
|
||||
BikerGang.Clubhouse.Emblem.loaded = false
|
||||
|
||||
BikerGang.Clubhouse.MissionsWall.Clear()
|
||||
BikerGang.Clubhouse.MissionsWall.loaded = false
|
||||
|
||||
for key, member in pairs(BikerGang.Clubhouse.Members) do
|
||||
if type(member) == "table" then
|
||||
member.Clear()
|
||||
member.loaded = false
|
||||
end
|
||||
end
|
||||
end
|
||||
}
|
||||
}
|
||||
|
||||
CreateThread(function()
|
||||
-- Removing the black texture
|
||||
BikerGang.Clubhouse.Members.President.Init()
|
||||
BikerGang.Clubhouse.Members.VicePresident.Init()
|
||||
BikerGang.Clubhouse.Members.RoadCaptain.Init()
|
||||
BikerGang.Clubhouse.Members.Enforcer.Init()
|
||||
BikerGang.Clubhouse.Members.SergeantAtArms.Init()
|
||||
|
||||
BikerGang.Clubhouse.ClubName.Init()
|
||||
BikerGang.Clubhouse.Emblem.Init()
|
||||
BikerGang.Clubhouse.MissionsWall.Init()
|
||||
|
||||
while true do
|
||||
if BikerGang.Clubhouse.ClubName.needToLoad or BikerGang.Clubhouse.Emblem.needToLoad or BikerGang.Clubhouse.MissionsWall.needToLoad or BikerGang.Clubhouse.Members.President.needToLoad or BikerGang.Clubhouse.Members.VicePresident.needToLoad or BikerGang.Clubhouse.Members.RoadCaptain.needToLoad or BikerGang.Clubhouse.Members.Enforcer.needToLoad or BikerGang.Clubhouse.Members.SergeantAtArms.needToLoad then
|
||||
-- If we are inside a clubhouse, then we load
|
||||
if Global.Biker.isInsideClubhouse1 or Global.Biker.isInsideClubhouse2 then
|
||||
-- Club name
|
||||
if BikerGang.Clubhouse.ClubName.needToLoad then
|
||||
DrawClubName(BikerGang.Name.name, BikerGang.Name.color, BikerGang.Name.font)
|
||||
|
||||
BikerGang.Clubhouse.ClubName.loaded = true
|
||||
elseif BikerGang.Clubhouse.ClubName.loaded then
|
||||
BikerGang.Clubhouse.ClubName.Clear()
|
||||
BikerGang.Clubhouse.ClubName.loaded = false
|
||||
end
|
||||
|
||||
-- Emblem
|
||||
if BikerGang.Clubhouse.Emblem.needToLoad then
|
||||
DrawEmblem(BikerGang.Emblem.emblem, BikerGang.Emblem.rot)
|
||||
|
||||
BikerGang.Clubhouse.Emblem.loaded = true
|
||||
elseif BikerGang.Clubhouse.Emblem.loaded then
|
||||
BikerGang.Clubhouse.Emblem.Clear()
|
||||
BikerGang.Clubhouse.Emblem.loaded = false
|
||||
end
|
||||
|
||||
-- Missions wall
|
||||
if BikerGang.Clubhouse.MissionsWall.needToLoad then
|
||||
DrawMissions()
|
||||
|
||||
BikerGang.Clubhouse.MissionsWall.loaded = true
|
||||
elseif BikerGang.Clubhouse.MissionsWall.loaded then
|
||||
BikerGang.Clubhouse.MissionsWall.Clear()
|
||||
BikerGang.Clubhouse.MissionsWall.loaded = false
|
||||
end
|
||||
|
||||
-- Members: President
|
||||
for key, member in pairs(BikerGang.Clubhouse.Members) do
|
||||
if type(member) == "table" then
|
||||
if member.needToLoad then
|
||||
DrawMember(member)
|
||||
member.loaded = true
|
||||
elseif member.loaded then
|
||||
member.Clear()
|
||||
member.loaded = false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Wait(0) -- We need to call all this every frame
|
||||
else
|
||||
-- Not in a clubhouse
|
||||
Wait(1000)
|
||||
end
|
||||
else
|
||||
-- No load needed
|
||||
Wait(1000)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
function DrawClubName(name, color, font)
|
||||
if BikerGang.Clubhouse.ClubName.stage == 0 then
|
||||
if BikerGang.Clubhouse.ClubName.renderId == -1 then
|
||||
BikerGang.Clubhouse.ClubName.renderId = CreateNamedRenderTargetForModel(BikerGang.Clubhouse.ClubName.target, BikerGang.Clubhouse.ClubName.prop)
|
||||
end
|
||||
|
||||
if BikerGang.Clubhouse.ClubName.movieId == -1 then
|
||||
BikerGang.Clubhouse.ClubName.movieId = RequestScaleformMovie("CLUBHOUSE_NAME")
|
||||
end
|
||||
|
||||
BikerGang.Clubhouse.ClubName.stage = 1
|
||||
elseif BikerGang.Clubhouse.ClubName.stage == 1 then
|
||||
if HasScaleformMovieLoaded(BikerGang.Clubhouse.ClubName.movieId) then
|
||||
local parameters = {
|
||||
p0 = {type = "string", value = name},
|
||||
p1 = {type = "int", value = color},
|
||||
p2 = {type = "int", value = font}
|
||||
}
|
||||
|
||||
SetupScaleform(BikerGang.Clubhouse.ClubName.movieId, "SET_CLUBHOUSE_NAME", parameters)
|
||||
|
||||
BikerGang.Clubhouse.ClubName.stage = 2
|
||||
else
|
||||
BikerGang.Clubhouse.ClubName.movieId = RequestScaleformMovie("CLUBHOUSE_NAME")
|
||||
end
|
||||
elseif BikerGang.Clubhouse.ClubName.stage == 2 then
|
||||
SetTextRenderId(BikerGang.Clubhouse.ClubName.renderId)
|
||||
SetScriptGfxDrawOrder(4)
|
||||
SetScriptGfxDrawBehindPausemenu(true)
|
||||
SetScriptGfxAlign(73, 73)
|
||||
DrawScaleformMovie(BikerGang.Clubhouse.ClubName.movieId, 0.0975, 0.105, 0.235, 0.35, 255, 255, 255, 255, 0)
|
||||
SetTextRenderId(GetDefaultScriptRendertargetRenderId())
|
||||
ResetScriptGfxAlign()
|
||||
end
|
||||
end
|
||||
|
||||
function DrawEmblem(texturesDict, rotation)
|
||||
if BikerGang.Clubhouse.Emblem.stage == 0 then
|
||||
if BikerGang.Clubhouse.Emblem.renderId == -1 then
|
||||
BikerGang.Clubhouse.Emblem.renderId = CreateNamedRenderTargetForModel(BikerGang.Clubhouse.Emblem.target, BikerGang.Clubhouse.Emblem.prop)
|
||||
end
|
||||
|
||||
local IsTextureDictLoaded = LoadStreamedTextureDict(texturesDict)
|
||||
|
||||
if not IsTextureDictLoaded then
|
||||
print("ERROR: DrawEmblem - Textures dictionnary cannot be loaded.")
|
||||
end
|
||||
|
||||
BikerGang.Clubhouse.Emblem.stage = 1
|
||||
elseif BikerGang.Clubhouse.Emblem.stage == 1 then
|
||||
BikerGang.Clubhouse.Emblem.renderId = CreateNamedRenderTargetForModel(BikerGang.Clubhouse.Emblem.target, BikerGang.Clubhouse.Emblem.prop)
|
||||
BikerGang.Clubhouse.Emblem.stage = 2
|
||||
elseif BikerGang.Clubhouse.Emblem.stage == 2 then
|
||||
SetTextRenderId(BikerGang.Clubhouse.Emblem.renderId)
|
||||
SetScriptGfxAlign(73, 73)
|
||||
SetScriptGfxDrawOrder(4)
|
||||
SetScriptGfxDrawBehindPausemenu(true)
|
||||
DrawInteractiveSprite(texturesDict, texturesDict, 0.5, 0.5, 1.0, 1.0, rotation, 255, 255, 255, 255);
|
||||
ResetScriptGfxAlign()
|
||||
SetTextRenderId(GetDefaultScriptRendertargetRenderId())
|
||||
end
|
||||
end
|
||||
|
||||
function DrawMissions()
|
||||
if BikerGang.Clubhouse.MissionsWall.stage == 0 then
|
||||
if BikerGang.Clubhouse.MissionsWall.renderId == -1 then
|
||||
BikerGang.Clubhouse.MissionsWall.renderId = CreateNamedRenderTargetForModel(BikerGang.Clubhouse.MissionsWall.target, BikerGang.Clubhouse.MissionsWall.prop)
|
||||
end
|
||||
|
||||
BikerGang.Clubhouse.MissionsWall.stage = 1
|
||||
elseif BikerGang.Clubhouse.MissionsWall.stage == 1 then
|
||||
if HasScaleformMovieLoaded(BikerGang.Clubhouse.MissionsWall.movieId) then
|
||||
BikerGang.Clubhouse.MissionsWall.stage = 2
|
||||
else
|
||||
BikerGang.Clubhouse.MissionsWall.movieId = RequestScaleformMovie("BIKER_MISSION_WALL")
|
||||
end
|
||||
elseif BikerGang.Clubhouse.MissionsWall.stage == 2 then
|
||||
SetTextRenderId(BikerGang.Clubhouse.MissionsWall.renderId)
|
||||
SetScriptGfxDrawOrder(4)
|
||||
SetScriptGfxDrawBehindPausemenu(false)
|
||||
DrawScaleformMovie(BikerGang.Clubhouse.MissionsWall.movieId, 0.5, 0.5, 1.0, 1.0, 255, 255, 255, 255, 0)
|
||||
SetTextRenderId(GetDefaultScriptRendertargetRenderId())
|
||||
SetScaleformFitRendertarget(BikerGang.Clubhouse.MissionsWall.movieId, true)
|
||||
end
|
||||
end
|
||||
|
||||
function DrawMember(member)
|
||||
if member.stage == 0 then
|
||||
member.stage = 1
|
||||
elseif member.stage == 1 then
|
||||
member.renderId = CreateNamedRenderTargetForModel(member.target, member.prop)
|
||||
member.stage = 2
|
||||
elseif member.stage == 2 then
|
||||
if HasStreamedTextureDictLoaded(member.textureDict) then
|
||||
SetTextRenderId(member.renderId)
|
||||
SetScriptGfxAlign(73, 73)
|
||||
DrawInteractiveSprite(member.textureDict, member.textureDict, 0.5, 0.5, 1.0, 1.0, 0.0, 255, 255, 255, 255)
|
||||
ResetScriptGfxAlign()
|
||||
SetTextRenderId(GetDefaultScriptRendertargetRenderId())
|
||||
end
|
||||
end
|
||||
end
|
||||
87
resources/[housing]/bob74_ipl/dlc_bikers/meth.lua
Normal file
87
resources/[housing]/bob74_ipl/dlc_bikers/meth.lua
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
-- Meth lab: 1009.5, -3196.6, -38.99682
|
||||
exports('GetBikerMethLabObject', function()
|
||||
return BikerMethLab
|
||||
end)
|
||||
|
||||
BikerMethLab = {
|
||||
interiorId = 247041,
|
||||
|
||||
Ipl = {
|
||||
Interior = {
|
||||
ipl = "bkr_biker_interior_placement_interior_2_biker_dlc_int_ware01_milo",
|
||||
|
||||
Load = function()
|
||||
EnableIpl(BikerMethLab.Ipl.Interior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(BikerMethLab.Ipl.Interior.ipl, false)
|
||||
end
|
||||
}
|
||||
},
|
||||
Style = {
|
||||
none = "",
|
||||
empty = "meth_lab_empty",
|
||||
basic = {
|
||||
"meth_lab_basic",
|
||||
"meth_lab_setup"
|
||||
},
|
||||
upgrade = {
|
||||
"meth_lab_upgrade",
|
||||
"meth_lab_setup"
|
||||
},
|
||||
|
||||
Set = function(style, refresh)
|
||||
BikerMethLab.Style.Clear(false)
|
||||
|
||||
if style ~= "" then
|
||||
SetIplPropState(BikerMethLab.interiorId, style, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerMethLab.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerMethLab.interiorId, {
|
||||
BikerMethLab.Style.empty,
|
||||
BikerMethLab.Style.basic,
|
||||
BikerMethLab.Style.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Security = {
|
||||
none = "",
|
||||
upgrade = "meth_lab_security_high",
|
||||
|
||||
Set = function(security, refresh)
|
||||
BikerMethLab.Security.Clear(false)
|
||||
|
||||
if security ~= "" then
|
||||
SetIplPropState(BikerMethLab.interiorId, security, true, refresh)
|
||||
else
|
||||
if refresh then
|
||||
RefreshInterior(BikerMethLab.interiorId)
|
||||
end
|
||||
end
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerMethLab.interiorId, BikerMethLab.Security.upgrade, false, refresh)
|
||||
end
|
||||
},
|
||||
Details = {
|
||||
production = "meth_lab_production", -- Products
|
||||
|
||||
Enable = function(details, state, refresh)
|
||||
SetIplPropState(BikerMethLab.interiorId, details, state, refresh)
|
||||
end
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
BikerMethLab.Ipl.Interior.Load()
|
||||
BikerMethLab.Style.Set(BikerMethLab.Style.empty)
|
||||
BikerMethLab.Security.Set(BikerMethLab.Security.none)
|
||||
BikerMethLab.Details.Enable(BikerMethLab.Details.production, false)
|
||||
|
||||
RefreshInterior(BikerMethLab.interiorId)
|
||||
end
|
||||
}
|
||||
549
resources/[housing]/bob74_ipl/dlc_bikers/weed.lua
Normal file
549
resources/[housing]/bob74_ipl/dlc_bikers/weed.lua
Normal file
|
|
@ -0,0 +1,549 @@
|
|||
-- Weed farm: 1051.491, -3196.536, -39.14842
|
||||
exports('GetBikerWeedFarmObject', function()
|
||||
return BikerWeedFarm
|
||||
end)
|
||||
|
||||
BikerWeedFarm = {
|
||||
interiorId = 247297,
|
||||
|
||||
Ipl = {
|
||||
Interior = {
|
||||
ipl = "bkr_biker_interior_placement_interior_3_biker_dlc_int_ware02_milo",
|
||||
|
||||
Load = function()
|
||||
EnableIpl(BikerWeedFarm.Ipl.Interior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(BikerWeedFarm.Ipl.Interior.ipl, false)
|
||||
end
|
||||
},
|
||||
},
|
||||
Style = {
|
||||
basic = "weed_standard_equip",
|
||||
upgrade = "weed_upgrade_equip",
|
||||
|
||||
Set = function(style, refresh)
|
||||
BikerWeedFarm.Style.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, style, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Style.basic,
|
||||
BikerWeedFarm.Style.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Security = {
|
||||
basic = "weed_low_security",
|
||||
upgrade = "weed_security_upgrade",
|
||||
|
||||
Set = function(security, refresh)
|
||||
BikerWeedFarm.Security.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, security, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Security.basic,
|
||||
BikerWeedFarm.Security.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Plant1 = {
|
||||
Stage = {
|
||||
small = "weed_growtha_stage1",
|
||||
medium = "weed_growtha_stage2",
|
||||
full = "weed_growtha_stage3",
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerWeedFarm.Plant1.Stage.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant1.Stage.small,
|
||||
BikerWeedFarm.Plant1.Stage.medium,
|
||||
BikerWeedFarm.Plant1.Stage.full
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Light = {
|
||||
basic = "light_growtha_stage23_standard",
|
||||
upgrade = "light_growtha_stage23_upgrade",
|
||||
|
||||
Set = function(light, refresh)
|
||||
BikerWeedFarm.Plant1.Light.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant1.Light.basic,
|
||||
BikerWeedFarm.Plant1.Light.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Hose = {
|
||||
Enable = function(state, refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, "weed_hosea", state, refresh)
|
||||
end
|
||||
},
|
||||
Set = function(stage, upgrade, refresh)
|
||||
BikerWeedFarm.Plant1.Stage.Set(stage, false)
|
||||
BikerWeedFarm.Plant1.Light.Set(upgrade, false)
|
||||
BikerWeedFarm.Plant1.Hose.Enable(true, true)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
BikerWeedFarm.Plant1.Stage.Clear()
|
||||
BikerWeedFarm.Plant1.Light.Clear()
|
||||
BikerWeedFarm.Plant1.Hose.Enable(false, true)
|
||||
end
|
||||
},
|
||||
Plant2 = {
|
||||
Stage = {
|
||||
small = "weed_growthb_stage1",
|
||||
medium = "weed_growthb_stage2",
|
||||
full = "weed_growthb_stage3",
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerWeedFarm.Plant2.Stage.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant2.Stage.small,
|
||||
BikerWeedFarm.Plant2.Stage.medium,
|
||||
BikerWeedFarm.Plant2.Stage.full
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Light = {
|
||||
basic = "light_growthb_stage23_standard",
|
||||
upgrade = "light_growthb_stage23_upgrade",
|
||||
|
||||
Set = function(light, refresh)
|
||||
BikerWeedFarm.Plant2.Light.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant2.Light.basic,
|
||||
BikerWeedFarm.Plant2.Light.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Hose = {
|
||||
Enable = function(state, refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, "weed_hoseb", state, refresh)
|
||||
end
|
||||
},
|
||||
Set = function(stage, upgrade, refresh)
|
||||
BikerWeedFarm.Plant2.Stage.Set(stage, false)
|
||||
BikerWeedFarm.Plant2.Light.Set(upgrade, false)
|
||||
BikerWeedFarm.Plant2.Hose.Enable(true, true)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
BikerWeedFarm.Plant2.Stage.Clear()
|
||||
BikerWeedFarm.Plant2.Light.Clear()
|
||||
BikerWeedFarm.Plant2.Hose.Enable(false, true)
|
||||
end
|
||||
},
|
||||
Plant3 = {
|
||||
Stage = {
|
||||
small = "weed_growthc_stage1",
|
||||
medium = "weed_growthc_stage2",
|
||||
full = "weed_growthc_stage3",
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerWeedFarm.Plant3.Stage.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant3.Stage.small,
|
||||
BikerWeedFarm.Plant3.Stage.medium,
|
||||
BikerWeedFarm.Plant3.Stage.full
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Light = {
|
||||
basic = "light_growthc_stage23_standard",
|
||||
upgrade = "light_growthc_stage23_upgrade",
|
||||
|
||||
Set = function(light, refresh)
|
||||
BikerWeedFarm.Plant3.Light.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant3.Light.basic,
|
||||
BikerWeedFarm.Plant3.Light.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Hose = {
|
||||
Enable = function(state, refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, "weed_hosec", state, refresh)
|
||||
end
|
||||
},
|
||||
Set = function(stage, upgrade, refresh)
|
||||
BikerWeedFarm.Plant3.Stage.Set(stage, false)
|
||||
BikerWeedFarm.Plant3.Light.Set(upgrade, false)
|
||||
BikerWeedFarm.Plant3.Hose.Enable(true, true)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
BikerWeedFarm.Plant3.Stage.Clear()
|
||||
BikerWeedFarm.Plant3.Light.Clear()
|
||||
BikerWeedFarm.Plant3.Hose.Enable(false, true)
|
||||
end
|
||||
},
|
||||
Plant4 = {
|
||||
Stage = {
|
||||
small = "weed_growthd_stage1",
|
||||
medium = "weed_growthd_stage2",
|
||||
full = "weed_growthd_stage3",
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerWeedFarm.Plant4.Stage.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant4.Stage.small,
|
||||
BikerWeedFarm.Plant4.Stage.medium,
|
||||
BikerWeedFarm.Plant4.Stage.full
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Light = {
|
||||
basic = "light_growthd_stage23_standard",
|
||||
upgrade = "light_growthd_stage23_upgrade",
|
||||
|
||||
Set = function(light, refresh)
|
||||
BikerWeedFarm.Plant4.Light.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant4.Light.basic,
|
||||
BikerWeedFarm.Plant4.Light.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Hose = {
|
||||
Enable = function(state, refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, "weed_hosed", state, refresh)
|
||||
end
|
||||
},
|
||||
Set = function(stage, upgrade, refresh)
|
||||
BikerWeedFarm.Plant4.Stage.Set(stage, false)
|
||||
BikerWeedFarm.Plant4.Light.Set(upgrade, false)
|
||||
BikerWeedFarm.Plant4.Hose.Enable(true, true)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
BikerWeedFarm.Plant4.Stage.Clear()
|
||||
BikerWeedFarm.Plant4.Light.Clear()
|
||||
BikerWeedFarm.Plant4.Hose.Enable(false, true)
|
||||
end
|
||||
},
|
||||
Plant5 = {
|
||||
Stage = {
|
||||
small = "weed_growthe_stage1",
|
||||
medium = "weed_growthe_stage2",
|
||||
full = "weed_growthe_stage3",
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerWeedFarm.Plant5.Stage.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant5.Stage.small,
|
||||
BikerWeedFarm.Plant5.Stage.medium,
|
||||
BikerWeedFarm.Plant5.Stage.full
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Light = {
|
||||
basic = "light_growthe_stage23_standard",
|
||||
upgrade = "light_growthe_stage23_upgrade",
|
||||
|
||||
Set = function(light, refresh)
|
||||
BikerWeedFarm.Plant5.Light.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant5.Light.basic,
|
||||
BikerWeedFarm.Plant5.Light.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Hose = {
|
||||
Enable = function(state, refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, "weed_hosee", state, refresh)
|
||||
end
|
||||
},
|
||||
Set = function(stage, upgrade, refresh)
|
||||
BikerWeedFarm.Plant5.Stage.Set(stage, false)
|
||||
BikerWeedFarm.Plant5.Light.Set(upgrade, false)
|
||||
BikerWeedFarm.Plant5.Hose.Enable(true, true)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
BikerWeedFarm.Plant5.Stage.Clear()
|
||||
BikerWeedFarm.Plant5.Light.Clear()
|
||||
BikerWeedFarm.Plant5.Hose.Enable(false, true)
|
||||
end
|
||||
},
|
||||
Plant6 = {
|
||||
Stage = {
|
||||
small = "weed_growthf_stage1",
|
||||
medium = "weed_growthf_stage2",
|
||||
full = "weed_growthf_stage3",
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerWeedFarm.Plant6.Stage.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant6.Stage.small,
|
||||
BikerWeedFarm.Plant6.Stage.medium,
|
||||
BikerWeedFarm.Plant6.Stage.full
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Light = {
|
||||
basic = "light_growthf_stage23_standard",
|
||||
upgrade = "light_growthf_stage23_upgrade",
|
||||
|
||||
Set = function(light, refresh)
|
||||
BikerWeedFarm.Plant6.Light.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant6.Light.basic,
|
||||
BikerWeedFarm.Plant6.Light.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Hose = {
|
||||
Enable = function(state, refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, "weed_hosef", state, refresh)
|
||||
end
|
||||
},
|
||||
Set = function(stage, upgrade, refresh)
|
||||
BikerWeedFarm.Plant6.Stage.Set(stage, false)
|
||||
BikerWeedFarm.Plant6.Light.Set(upgrade, false)
|
||||
BikerWeedFarm.Plant6.Hose.Enable(true, true)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
BikerWeedFarm.Plant6.Stage.Clear()
|
||||
BikerWeedFarm.Plant6.Light.Clear()
|
||||
BikerWeedFarm.Plant6.Hose.Enable(false, true)
|
||||
end
|
||||
},
|
||||
Plant7 = {
|
||||
Stage = {
|
||||
small = "weed_growthg_stage1",
|
||||
medium = "weed_growthg_stage2",
|
||||
full = "weed_growthg_stage3",
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerWeedFarm.Plant7.Stage.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant7.Stage.small,
|
||||
BikerWeedFarm.Plant7.Stage.medium,
|
||||
BikerWeedFarm.Plant7.Stage.full
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Light = {
|
||||
basic = "light_growthg_stage23_standard",
|
||||
upgrade = "light_growthg_stage23_upgrade",
|
||||
|
||||
Set = function(light, refresh)
|
||||
BikerWeedFarm.Plant7.Light.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant7.Light.basic,
|
||||
BikerWeedFarm.Plant7.Light.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Hose = {
|
||||
Enable = function(state, refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, "weed_hoseg", state, refresh)
|
||||
end
|
||||
},
|
||||
Set = function(stage, upgrade, refresh)
|
||||
BikerWeedFarm.Plant7.Stage.Set(stage, false)
|
||||
BikerWeedFarm.Plant7.Light.Set(upgrade, false)
|
||||
BikerWeedFarm.Plant7.Hose.Enable(true, true)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
BikerWeedFarm.Plant7.Stage.Clear()
|
||||
BikerWeedFarm.Plant7.Light.Clear()
|
||||
BikerWeedFarm.Plant7.Hose.Enable(false, true)
|
||||
end
|
||||
},
|
||||
Plant8 = {
|
||||
Stage = {
|
||||
small = "weed_growthh_stage1",
|
||||
medium = "weed_growthh_stage2",
|
||||
full = "weed_growthh_stage3",
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerWeedFarm.Plant8.Stage.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant8.Stage.small,
|
||||
BikerWeedFarm.Plant8.Stage.medium,
|
||||
BikerWeedFarm.Plant8.Stage.full
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Light = {
|
||||
basic = "light_growthh_stage23_standard",
|
||||
upgrade = "light_growthh_stage23_upgrade",
|
||||
|
||||
Set = function(light, refresh)
|
||||
BikerWeedFarm.Plant8.Light.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant8.Light.basic,
|
||||
BikerWeedFarm.Plant8.Light.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Hose = {
|
||||
Enable = function(state, refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, "weed_hoseh", state, refresh)
|
||||
end
|
||||
},
|
||||
Set = function(stage, upgrade, refresh)
|
||||
BikerWeedFarm.Plant8.Stage.Set(stage, false)
|
||||
BikerWeedFarm.Plant8.Light.Set(upgrade, false)
|
||||
BikerWeedFarm.Plant8.Hose.Enable(true, true)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
BikerWeedFarm.Plant8.Stage.Clear()
|
||||
BikerWeedFarm.Plant8.Light.Clear()
|
||||
BikerWeedFarm.Plant8.Hose.Enable(false, true)
|
||||
end
|
||||
},
|
||||
Plant9 = {
|
||||
Stage = {
|
||||
small = "weed_growthi_stage1",
|
||||
medium = "weed_growthi_stage2",
|
||||
full = "weed_growthi_stage3",
|
||||
|
||||
Set = function(stage, refresh)
|
||||
BikerWeedFarm.Plant9.Stage.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, stage, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant9.Stage.small,
|
||||
BikerWeedFarm.Plant9.Stage.medium,
|
||||
BikerWeedFarm.Plant9.Stage.full
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Light = {
|
||||
basic = "light_growthi_stage23_standard",
|
||||
upgrade = "light_growthi_stage23_upgrade",
|
||||
|
||||
Set = function(light, refresh)
|
||||
BikerWeedFarm.Plant9.Light.Clear(false)
|
||||
|
||||
SetIplPropState(BikerWeedFarm.interiorId, light, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, {
|
||||
BikerWeedFarm.Plant9.Light.basic,
|
||||
BikerWeedFarm.Plant9.Light.upgrade
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
Hose = {
|
||||
Enable = function(state, refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, "weed_hosei", state, refresh)
|
||||
end
|
||||
},
|
||||
Set = function(stage, upgrade, refresh)
|
||||
BikerWeedFarm.Plant9.Stage.Set(stage, false)
|
||||
BikerWeedFarm.Plant9.Light.Set(upgrade, false)
|
||||
BikerWeedFarm.Plant9.Hose.Enable(true, true)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
BikerWeedFarm.Plant9.Stage.Clear()
|
||||
BikerWeedFarm.Plant9.Light.Clear()
|
||||
BikerWeedFarm.Plant9.Hose.Enable(false, true)
|
||||
end
|
||||
},
|
||||
Details = {
|
||||
production = "weed_production", -- Weed on the tables
|
||||
fans = "weed_set_up", -- Fans + mold buckets
|
||||
drying = "weed_drying", -- Drying weed hooked to the ceiling
|
||||
chairs = "weed_chairs", -- Chairs at the tables
|
||||
|
||||
Enable = function(details, state, refresh)
|
||||
SetIplPropState(BikerWeedFarm.interiorId, details, state, refresh)
|
||||
end
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
BikerWeedFarm.Ipl.Interior.Load()
|
||||
BikerWeedFarm.Style.Set(BikerWeedFarm.Style.upgrade)
|
||||
BikerWeedFarm.Security.Set(BikerWeedFarm.Security.basic)
|
||||
BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.drying, false)
|
||||
BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.chairs, false)
|
||||
BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.production, false)
|
||||
|
||||
BikerWeedFarm.Details.Enable({
|
||||
BikerWeedFarm.Details.production,
|
||||
BikerWeedFarm.Details.chairs,
|
||||
BikerWeedFarm.Details.drying
|
||||
}, true)
|
||||
|
||||
BikerWeedFarm.Plant1.Set(BikerWeedFarm.Plant1.Stage.medium, BikerWeedFarm.Plant1.Light.basic)
|
||||
BikerWeedFarm.Plant2.Set(BikerWeedFarm.Plant2.Stage.full, BikerWeedFarm.Plant2.Light.basic)
|
||||
BikerWeedFarm.Plant3.Set(BikerWeedFarm.Plant3.Stage.medium, BikerWeedFarm.Plant3.Light.basic)
|
||||
BikerWeedFarm.Plant4.Set(BikerWeedFarm.Plant4.Stage.full, BikerWeedFarm.Plant4.Light.basic)
|
||||
BikerWeedFarm.Plant5.Set(BikerWeedFarm.Plant5.Stage.medium, BikerWeedFarm.Plant5.Light.basic)
|
||||
BikerWeedFarm.Plant6.Set(BikerWeedFarm.Plant6.Stage.full, BikerWeedFarm.Plant6.Light.basic)
|
||||
BikerWeedFarm.Plant7.Set(BikerWeedFarm.Plant7.Stage.medium, BikerWeedFarm.Plant7.Light.basic)
|
||||
BikerWeedFarm.Plant8.Set(BikerWeedFarm.Plant8.Stage.full, BikerWeedFarm.Plant8.Light.basic)
|
||||
BikerWeedFarm.Plant9.Set(BikerWeedFarm.Plant9.Stage.full, BikerWeedFarm.Plant9.Light.basic)
|
||||
|
||||
RefreshInterior(BikerWeedFarm.interiorId)
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue