Sending ped to other clients

Hello,
I have a problem with peds sync (I don’t know if I can name it like that)

I create a ped on one client
local ped = CreatePed(2, modelHash, x, y, z, heading, true, true)
then I send “ped” variable to a second client and now how can I get ped health, coords and etc. in the second client?

you can’t send the “ped” variable to another client, because the “ped” (handle) is different on every client. You’ll have to work with network ID’s instead.

1 Like