You have to create your Ped Serverside and sync it to a client inside of a threat.
But Notice! Creating Serverside isn’t like “CreatePed” and so on you need variables in in case of this!
You need the following Plan:
Create a Ped (maybe an array which includes the, model, posx, posy, poz, …)
TriggerClientEvent (-> Create The Ped in a function Client Side)
Client -> Handle the events from Server and create the Ped like this inside your Client Script
Your clientscript only need a function the check on Start of the Script( Event: OnClientResourceStart) if the server got Ped (TriggerServerEvent, Handlefunction on Server, use the same Event as for Creation.
If you now want to handel death or something else you also have to build these things for: “is the ped dead” or “the ped is gonna kill a player oh my god” and so on hope you see what I mean
Last but not least it is possible but it’s a long way to script, because if you want that you ped keep walking around, you need to build waypoints server side or better you need to build the whole KI on Serverside!
But if you want to Create a Ped as a trader or something else -> keep the way I wrote down and be happy