CreateMissionTrain Sync for OneSync Infinity

Hello, I am trying to make a metro script work but I am having some issues syncing this resource. I am using OneSync Infinity. I need to find a way how can I get a coordinates of an entity when a player is far away from this entity (as we know on onesync a entity is being deactivated). So my question is How can I get a entity when I am far away from this entity?

Natives such as GetEntityCoords exist on server side when using onesync. Many of the natives are readily available for server side use. Just check the native reference.

Tl’dr if you usually only work on client side:

  • get the network id of the entity
  • trigger a server event including that network id
  • on server side get the entity from the network id
  • do whatever you want on server side

Thank you so much! Did not know that I can use GetEntityCoords on server side!

1 Like