How to sync other players see the stream dog

Hi!
I’m using “Add-On Peds” to set the playermodel into a modded shepherd, i can see the stream model but anyone see me. How i can sync others to see the stream model? Thanks anyway :slight_smile:

I’m guessing that you need RequestModel native. You can put that onPlayerSpawn or a thread (not in a loop) so when someone joins the server he will have model already loaded.

1 Like

Hi! First thanks for your time. How i can do that? Thanks :slight_smile:

Citizen.CreateThread(function()
   while ESX == nil do
       Citizen.Wait(500)
   end
   RequestModel(GetHashKey("model"))
   while not HasModelLoaded(GetHashKey("model")) do
       Citizen.Wait(500)
   end
end)

You can try that, but instead of a model put the name of ped here. So I suppose it’s a_c_shepherd. Don’t remove " ".

1 Like

I will try it! Thanks <3

1 Like

No problem :slight_smile:

1 Like

Hi! That’s need to be placed into server.lua or its wrong there? (resourcename/server.lua i mean)

No, this needs to be in the client.lua.

1 Like

Needs to be a new resource o could be placed into a normal one ( inside client.lua of the main addon of the skin menu)

It can be a normal one.

1 Like

Not working :frowning:. Any more ideas?

Send me the link to the resource that you are using for setting player model.

[Release] Add-On Ped - Skinchange Menu This :slight_smile:

Did you see another menu for peds model? Or how to sync it :confused:

Well, if you are using ESX you can simply create a new menu function for it and put different skins there. Check esx_policejob and CloakroomMenu for reference if you don’t know how to create such a menu. If you are not using ESX, you can try making it in NativeUI.

1 Like