How to come back to my skin after SetPlayerPed

Hi

Just a question, i’m write a script to change my player as ped.
So, my staff have a command to activate the “admin right”, and i want to change the user as a ped when he is in “admin mode”
That works!

But, i want he come back to his normal skin (database skin) when he use another time the command, to come back to the “player mode”.

I use “SetPlayerPed” but i think you can’t come back to a normal skin after that
Am i right?

… huh? A player is always a ped (there’s literally no distinction between a player’s ped and any other ped), and you can just either set it back to the old ped (if you kept it as mission entity) or change model back to what you do in your spawning script (e.g. using SetPlayerModel - Natives @ Cfx.re Docs).

1 Like

What’s SetPlayerPed?

… fair point, I somehow assumed they meant ChangePlayerPed - Natives @ Cfx.re Docs

Thanks
So, i come back to “mp_m_freemode_01” and it works.
But, it works only 1 time, if i use the command more than 1 times, the player become invisible… :frowning:
I will continue to search why

Sorry, SetPlayerModel… i write it so fast.

Ah, you just need to set the ped components again.

The default variation probably isn’t your clothing set though. :stuck_out_tongue: