How do I set the default ped to mp_m_freemode_01 only, I’m using vMenu and it’s a combat server so there’s no framework.
Most easest way will be setting up a player model in “map”. Take a look on ./[cfx-server-data]/[resources]/[gamemodes]/[maps] folder and edit map you are using (fivem-map-hipster, fivem-map-skater, etc.):
I did this but the ped is invisible
Ah, yes, you need to set up ped components also. Add following code somewhere on client side:
-- client.lua
local components = {
[0] = {16, 0, 0},
[1] = {120, 0, 0},
[2] = {9, 3, 0},
[3] = {0, 0, 0},
[4] = {4, 0, 0},
[5] = {9, 0, 0},
[6] = {4, 0, 0},
[7] = {0, 0, 0},
[8] = {1, 0, 0},
[9] = {0, 0, 0},
[10] = {0, 0, 0},
[11] = {172, 0, 0},
}
AddEventHandler("playerSpawned", function()
local ped = PlayerPedId()
for k,v in pairs(components) do
SetPedComponentVariation(ped, k, v[1], v[2], v[3])
end
end)