From a683bb41dce5193bb027822916e365ede4fdac49 Mon Sep 17 00:00:00 2001 From: Florian Schmidt Date: Sat, 4 May 2024 03:24:49 +0200 Subject: [PATCH] fix clothing skin update (#5) --- src/main/server/player/clothing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/server/player/clothing.ts b/src/main/server/player/clothing.ts index fb2c016d2..e98cad906 100644 --- a/src/main/server/player/clothing.ts +++ b/src/main/server/player/clothing.ts @@ -327,7 +327,7 @@ export function useClothing(player: alt.Player) { player.clearProp(propComponents[i]); } - if (typeof data.skin === null || typeof data.skin === undefined) { + if (data.skin === null || typeof data.skin === 'undefined') { const useModel = data.appearance.sex === 1 ? mModel : fModel; if (player.model !== useModel) { player.model = useModel;