pedr0fontoura / fivem-appearance

👀 A flexible player customization script for FiveM.
https://forum.cfx.re/t/release-fivem-appearance/2438537
MIT License
120 stars 72 forks source link

1.1.0 version has SyntaxError in build script. Does not show customization screen. #2

Closed Davenport-Physics closed 3 years ago

Davenport-Physics commented 3 years ago

image

Customization screen does not show up in the left.

image

in my server.cfg

setr fivem-appearance:customization 1
ensure fivem-appearance

The code I'm using to call this

function open_clothing_store()

    local config = {
        ped = false,
        headBlend = false,
        faceFeatures = false,
        headOverlays = false,
        components = true,
        props = true
    }

    TriggerEvent("cd_drawtextui:temp_hide_text")
    exports['fivem-appearance']:startPlayerCustomization(function(appearance)

        if appearance then
            exports["em_fw"]:update_skin(json.encode(appearance))
            TriggerEvent("cui_wardrobe:open")
        end
        TriggerEvent("cd_drawtextui:temp_show_text")

    end, config)

end
Davenport-Physics commented 3 years ago

I have no issue with the 1.0 build, but of course, that one is missing the config options.

Build 1.0

image

snakewiz commented 3 years ago

I had no success trying to reproduce your issue on my end. Looks like it's something related to parsing the locales file? Try to add this line into your config, before ensuring the resource.

setr fivem-appearance:locale "en"
Davenport-Physics commented 3 years ago

Alright. I had that line before, it didn't quite make a difference on my end.

Adding that line once more, doesn't clear up the syntax issue nor the issue with the interface being gone.

setr fivem-appearance:customization 1
setr fivem-appearance:locale "en"
ensure fivem-appearance

Not sure what's going on.

Davenport-Physics commented 3 years ago

I've cleared server and client cache, which didn't help. I've switched the fivem build from stable to canary, no dice there.

Exports are working fine, just no interface. I've had other clients report the same issue.