Adjusting spawnmanager for skinchanger



Last night I installed the [Release][ESX][Clothing Shops] and everything required with it (esx_skin & skinchanger) and ran into an issue. On my first spawn everything worked fine, it gave me the menu to change my face and everything but after respawning upon death it went straight back to the regular model that you start with being one from fivem-map-skater.

I took a look at the article here because I thought it’d possibly help me with my solution but there is no server.lua in my fivem-map-skater map so there isn’t much I can go off from there. I am just trying to make sure that when a player changes his skin he is respawns with the same skin. I tried to throw TriggerEvent('skinchanger:loadSkin', skin) places in spawnmanager where it looked like it spawned the player but when putting that line of code in for some reason my player wouldn’t even spawn but rather lay their dead until I reconnected. Any help would be greatly appreciated, thanks!

Map images needed

the model and respawn are manage in the file


and depending the map you have :


after if you have a custom player , then you have to make a script who will handle the proper model to respawn when he die.


So I know this is a really late response but i had the same problem and FINALLY fixed it.

Change line 255 of your spawnmanager.lua from

SetPlayerModel(PlayerId(), spawn.model)


TriggerEvent(‘skinchanger:loadSkin’, skin)

and that will load your saved skin when you spawn or re-spawn after death.