Bob74 / bob74_ipl

Fix holes and customize the map
https://forum.fivem.net/t/release-fix-holes-in-the-map/25240
MIT License
254 stars 237 forks source link

Pillbox Won't Load #158

Closed Legacy-TacticalGamingInteractive closed 1 month ago

Legacy-TacticalGamingInteractive commented 1 month ago

since the most recent version(s) of Bob74 I cannot get Pillbox to load.

The building exterior model that I want loads at least for the up top portion with the cut outs for the destroyed version, which is what I want up top, with an intact version down below if possible.

However the actual interior won't load either up top or down below.

Is something wrong here?

-- -- Pillbox hospital: 307.1680, -590.807, 43.280
-- exports('GetPillboxHospitalObject', function()
    -- return PillboxHospital
-- end)

-- PillboxHospital = {
    -- ipl = "rc12b_destroyed",

    -- Enable = function(state)
        -- EnableIpl(PillboxHospital.ipl, state)
    -- end
-- }

-- Pillbox hospital: 307.1680, -590.807, 43.280
exports('GetPillboxHospitalObject', function()
    return PillboxHospital
end)

PillboxHospital = {
    default = 'rc12b_default',
    fixed = 'rc12b_fixed',
    destroyed = 'rc12b_destroyed', -- Destroyed and hospital interior need to be loaded at the same time
    hospitalinterior = 'rc12b_hospitalinterior',

    Enable = function(ipl, state)
        EnableIpl(ipl, state)
    end,

    Clear = function()
        PillboxHospital.Clear()
        --PillboxHospital.Enable(PillboxHospital.default, false)
        --PillboxHospital.Enable(PillboxHospital.fixed, false)
        PillboxHospital.Enable(PillboxHospital.destroyed, false)
        PillboxHospital.Enable(PillboxHospital.hospitalinterior, false)
    end,

    LoadDefault = function()
        --PillboxHospital.Clear()
        -- [DEFAULT HOSPITAL]
        -- PillboxHospital.Enable(PillboxHospital.default, true)
        -- [FIXED HOSPITAL]
        --PillboxHospital.Enable(PillboxHospital.fixed, true)
        -- [DESTROYED HOSPITAL]
        PillboxHospital.Enable(PillboxHospital.destroyed, true)
        PillboxHospital.Enable(PillboxHospital.hospitalinterior, true)
    end,
}
TheIndra55 commented 1 month ago

It seems like you are using a fork of bob74_ipl, since this code does not exist in the current version.

Legacy-TacticalGamingInteractive commented 1 month ago

Whoops. I'll give the default code a try.