Client

Network existing is a module that gives you the ability to await for an entity to exist physically and networked.

lib.awaitNetworkExisting

lib.awaitNetworkExisting(entityNetId, entityHandle, timeout)

Parameters

  • entityNetId?: number The network id of the entity.
  • entityHandle?: number The entity to await.
  • timeout?: number The timeout in milliseconds to wait for the entity to exist.

Returns

  • entityNetId number | false: The network id of the entity.
  • entityHandle number | nil: The handle of the entity.

Callouts

  • Please be aware that at least you need to pass an entity or a net id