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

Diamond Casino Penthouse Interior #82

Closed BraveDevelopment closed 1 year ago

BraveDevelopment commented 2 years ago

Walls are green/red or blue in penthouse after applying patterns. Screenshot 2022-04-17 221235

Bob74 commented 2 years ago

Did you try different pattern values and can you post your code?

BraveDevelopment commented 2 years ago

Did you try different pattern values and can you post your code?

I tried every pattern and every penthouse theme. Does it work on your test server? Did you test it? Perhaps you could try it and post a picture of how it should look.

Bob74 commented 2 years ago

The whole casino part was not added by me so I didn't see it actually working. I will try to setup a server to check it.

BraveDevelopment commented 2 years ago

The whole casino part was not added by me so I didn't see it actually working. I will try to setup a server to check it.

That would be awesome. Although I’m not the first one having this issue. Github Issue

Bob74 commented 2 years ago

All right, I got something: image

I will have to make some changes to the penthouse code, but the issue comes from the need to set a color to the patterns:

DiamondPenthouse.Ipl.Interior.Load()

-- setting a wall style
DiamondPenthouse.Interior.Walls.SetColor(DiamondPenthouse.Colors.timeless)

-- setting carpets patterns
DiamondPenthouse.Interior.Pattern.Set(DiamondPenthouse.Interior.Pattern.pattern01)

-- setting carpets colors
SetInteriorEntitySetColor(DiamondPenthouse.interiorId, DiamondPenthouse.Interior.Pattern.pattern01, DiamondPenthouse.Colors.timeless)

DiamondPenthouse.Interior.SpaBar.Set(DiamondPenthouse.Interior.SpaBar.open)
DiamondPenthouse.Interior.MediaBar.Set(DiamondPenthouse.Interior.MediaBar.open)
DiamondPenthouse.Interior.Dealer.Set(DiamondPenthouse.Interior.Dealer.open)

RefreshInterior(DiamondPenthouse.interiorId)
Bob74 commented 2 years ago

I've updated the repo, could you give it a shot?

You can set the color of patterns now:

LoadDefault = function()
        local styleColor = DiamondPenthouse.Colors.sharp
        local stylePattern = DiamondPenthouse.Interior.Pattern.pattern01

        DiamondPenthouse.Ipl.Interior.Load()

        DiamondPenthouse.Interior.Walls.SetColor(styleColor)
        DiamondPenthouse.Interior.Pattern.Set(stylePattern)
        DiamondPenthouse.Interior.Pattern.SetColor(stylePattern, styleColor)

        DiamondPenthouse.Interior.SpaBar.Set(DiamondPenthouse.Interior.SpaBar.open)
        DiamondPenthouse.Interior.MediaBar.Set(DiamondPenthouse.Interior.MediaBar.open)
        DiamondPenthouse.Interior.Dealer.Set(DiamondPenthouse.Interior.Dealer.open)

        RefreshInterior(DiamondPenthouse.interiorId)
    end
BraveDevelopment commented 2 years ago

I've updated the repo, could you give it a shot?

You can set the color of patterns now:

LoadDefault = function()
        local styleColor = DiamondPenthouse.Colors.sharp
        local stylePattern = DiamondPenthouse.Interior.Pattern.pattern01

        DiamondPenthouse.Ipl.Interior.Load()

        DiamondPenthouse.Interior.Walls.SetColor(styleColor)
        DiamondPenthouse.Interior.Pattern.Set(stylePattern)
        DiamondPenthouse.Interior.Pattern.SetColor(stylePattern, styleColor)

        DiamondPenthouse.Interior.SpaBar.Set(DiamondPenthouse.Interior.SpaBar.open)
        DiamondPenthouse.Interior.MediaBar.Set(DiamondPenthouse.Interior.MediaBar.open)
        DiamondPenthouse.Interior.Dealer.Set(DiamondPenthouse.Interior.Dealer.open)

        RefreshInterior(DiamondPenthouse.interiorId)
    end

I will try it. Thank you very much!