[HELP] i need to change the player model into an NPC when you start a job like ambulance Job

hi everyone…

so i have this problem where i want the player to change into an NPC when they go on a job on my ESX server. but i do not know how to do this and i really need help as this is annoying.

if you wan’t to help please respond in the comments