[Help] server sided ped wandring

Hey

I can’t figure out how to create server sided ped wandering.

What I’m doing now is:

  1. Have a function client side to create the ped
  2. Trigger it server side on resource start with - 1 so it does it for everyone.
  3. Trigger the wandring ped tag same as the create ped with - 1

But this gives me wandring ped with different paths for everyone.

Is there a way to make the ped move the same route for everyone on the server?

Thanks

I would move the spawning to the server-side for starters, then send an event to the entity owner to start a wondering task.

1 Like

Oh dope thanks!

So I would let for example the first one to join make the ped and let him do all the work with wandring etc?

Depends on what exactly you are trying to do, but you could spawn the ped as soon as the server starts, then issue the wandering command whenever the first player joins.

1 Like

Got it to work thanks!