housing
This commit is contained in:
parent
6d90da2841
commit
b71b47a9fb
169 changed files with 12687 additions and 2932 deletions
51
resources/[housing]/bob74_ipl/dlc_drugwars/freakshop.lua
Normal file
51
resources/[housing]/bob74_ipl/dlc_drugwars/freakshop.lua
Normal file
|
@ -0,0 +1,51 @@
|
|||
-- Freakshop: 570.9713, -420.0727, -70.000
|
||||
exports('GetDrugWarsFreakshopObject', function()
|
||||
return DrugWarsFreakshop
|
||||
end)
|
||||
|
||||
DrugWarsFreakshop = {
|
||||
interiorId = 290817,
|
||||
|
||||
Ipl = {
|
||||
Exterior = {
|
||||
ipl = {
|
||||
"xm3_warehouse",
|
||||
"xm3_warehouse_grnd"
|
||||
},
|
||||
|
||||
Load = function()
|
||||
EnableIpl(DrugWarsFreakshop.Ipl.Exterior.ipl, true)
|
||||
end,
|
||||
Remove = function()
|
||||
EnableIpl(DrugWarsFreakshop.Ipl.Exterior.ipl, false)
|
||||
end
|
||||
}
|
||||
},
|
||||
|
||||
Door = {
|
||||
opened = "entity_set_roller_door_open",
|
||||
closed = "entity_set_roller_door_closed",
|
||||
|
||||
Set = function(door, refresh)
|
||||
DrugWarsFreakshop.Door.Clear()
|
||||
|
||||
SetIplPropState(DrugWarsFreakshop.interiorId, door, true, refresh)
|
||||
end,
|
||||
Clear = function(refresh)
|
||||
SetIplPropState(DrugWarsFreakshop.interiorId, {
|
||||
DrugWarsFreakshop.Door.opened,
|
||||
DrugWarsFreakshop.Door.closed
|
||||
}, false, refresh)
|
||||
end
|
||||
},
|
||||
|
||||
LoadDefault = function()
|
||||
-- Exterior
|
||||
DrugWarsFreakshop.Ipl.Exterior.Load()
|
||||
|
||||
-- Interior
|
||||
DrugWarsFreakshop.Door.Set(DrugWarsFreakshop.Door.closed, false)
|
||||
|
||||
RefreshInterior(DrugWarsFreakshop.interiorId)
|
||||
end
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue