OneSync 'Infinity': how to use it

This topic was originally written when Infinity was initially released. Information in it might be woefully out of date.

Infinity is available for free on any tier now, includes population, and is the recommended mode to use with FiveM/OneSync. To use it, simply launch your server with +set onesync on.

Slot counts are still dependent on tier, see https://fivem.net/server-hosting for the latest info.

Original post

A while ago, the FiveM client/server got support for ‘Infinity’ mode for OneSync, which combines player entity culling, player culling and (hopefully temporary) removal of automatically-generated population.

This post seeks to quickly detail some commonly-asked questions.

What is OneSync: Infinity?

  • A mode allowing (up to) 1024 players at this time. We have only tested 600-ish in load tests since we couldn’t get any more players, but it held up quite well in the end (on a server with minimal resources)
  • To accomplish this, it uses the following technological changes:
    • Removal of population to save object ID pool space. You can still create (some) synced/networked peds using script, however.
    • Player ped/vehicle culling. No entities will be created on clients outside a ‘focus zone’, which currently is hardcoded to 300 units around a player. We’re still looking for a better algorithm.
    • Player culling. No players will be created/deleted locally outside of the focus zone too. This means that all player iteration will have to happen server-side.
  • It also has a bit better performance than ‘plain’ OneSync at this time due to player ped culling, and works around the so-called ‘head blend bug’.

What are the gotchas?

  • A new common crash: kilo-xray-tango. It’s quite rare depending on how densely packed players are, figuring out a consistent repro would be very welcomed!
  • Automatic population is disabled as otherwise you’d run out of object IDs around 200-300 players. (a global maximum of 8192 spawned entities exists at this time)
  • You need a Platinum subscription, or a ‘manually granted Infinity’ group membership at this time. Once it’s developed further, we may consider allowing tiered player caps for lower Patreon subscriber tiers.
  • A number of scripts will need changing. Admin menus, ‘teleport to player’ UI and scoreboards definitely won’t work directly. Loops are still up to 256 max (or using GET_ACTIVE_PLAYERS), but will only find nearby players.

How do I use it?

  • Add +set onesync on to your server startup command line - it won’t work if you add it in the .cfg.
  • Make sure onesync_enabled and sv_maxclients are set appropriately.
  • Fix scripts that end up showing incomplete lists.

Support FAQ

Everyone’s instanced, I only see myself?

That’s supposed to happen. Get closer to other players, and fix your player listing scripts.

How do I get all players on the client?

Not at this time, we’re still investigating efficient ways to send this data along. Currently, you should use server/latent server events for this.

We expect people to release a few helpful helpers in the #development:releases section for this.

Why is X built-in feature showing an incomplete list?

Report it! #general-discussion:1s-reports

Why is this paid? :frowning:

It just is. This might change after the Commerce release.

:mascot:?

Yes, :mascot:!

78 Likes

That will be interesting.

16 Likes

Don’t think so, various reasons for this.

14 Likes

What is the commerce release? Was there a post I missed?

9 Likes

Where Patreon One Sync need it?

8 Likes

You need to have ‘‘pledged’’

5 Likes

Infinity is awesome
Mad respects to FiveM devs

7 Likes

Looking forward to using this in the future, the deal breaker right now is getting all player data together but I’m sure it’ll get there in the end :slight_smile:

Might even make an infinity branch :stuck_out_tongue:

4 Likes

i think that’s awesome!!! but… what about all those natives not yet supported by onesync engine? Is this still being investigated?

7 Likes

Read the post!

3 Likes

Just wondering will this at some point be free to use for 32 slots or for the existing 64 slots?
Would really like to be able to test with this without having to pay extra for a license I don’t really have any use for personally.

5 Likes

How do i Get One onesync

2 Likes

Hi, you can test OneSync, up to 32 slots it is free, you don’t need any patreon tiers for that.

2 Likes

Yeah I knew that part about it, but that’s not the case for OneSync “Infinity” with 32 slots unfortunately.

1 Like

Hm - this might be an artifact of the earlier beta preview. Adding to the todo list for next client update, hopefully.

3 Likes

It is free for 32 slots

2 Likes

Hello,

I have included +set onesync_enableInfinity in my launch parameter:

/FXServer.exe +exec server.cfg +set onesync_enableInfinity 1
left sv_maxClients to 32 since i want to adopt to it before i public.

how do i know that onesync is working ?

3 Likes

It will say FiveM-OneSync in the upper right hand corner.

3 Likes

Well it says Fivem only but NPC’s are gone. is it a sign ?

3 Likes

Hello,

I searched all over but was not able to find a way to spawn npc’s on onesync, any tips on how to do it ?

4 Likes