Scripts/resources/[standalone]/bob74_ipl/dlc_agents/office.lua
2024-12-30 11:27:33 +01:00

47 lines
1.2 KiB
Lua

-- McKenzie Field Hangar Office: 2149.71, 4787.76, -47.0
exports("GetAgentsOffice", function()
return AgentsOffice
end)
AgentsOffice = {
interiorId = 297985,
Style = {
bed = "set_bed",
mess = "collision_z9mhn5",
Set = function(style, refresh)
AgentsOffice.Style.Clear(refresh)
SetIplPropState(AgentsOffice.interiorId, style, true, refresh)
end,
Clear = function(refresh)
SetIplPropState(AgentsOffice.interiorId, {
AgentsOffice.Style.bed,
AgentsOffice.Style.mess
}, false, refresh)
end
},
Details = {
laptop = "set_laptop",
ammo = "set_ammo",
intel = "set_intel",
weapons = "set_weapons",
tools = "collision_9k04j35",
booze = "set_24_2",
Enable = function(details, state, refresh)
SetIplPropState(AgentsOffice.interiorId, details, state, refresh)
end
},
LoadDefault = function()
AgentsOffice.Style.Set(AgentsOffice.Style.bed, false)
AgentsOffice.Details.Enable(AgentsOffice.Details.laptop, true, false)
RefreshInterior(AgentsOffice.interiorId)
end
}