SOLVED: Can't spawn mp_m_freemode_01

I can’t seem to be able to spawn mp_m_freemode_01 nor mp_f_freemode_01, the player becomes invisible when I try.

Here is my code:

		exports.spawnmanager.spawnPlayer({
			x: -1042.635,
			y: -2745.828,
			z: 21.359,
			heading: -30.0,
			model: "mp_m_freemode_01",
		});

Add a callback after spawning to set a component variation, freemode ped like other streamedpeds needs this.

1 Like

Thanks, it worked like a charm!

can you share your call back?

You can just do what i list below, make sure to replace the ped param since it’s null in my snippet.

SetPedComponentVariation(ped, 0, 0, 0, 0)