This resource provides a unique world/dimensions that can be assigned to players, peds, objects or vehicles in FiveM. This does nothing by itself, it is a tool for developers seeking to place players in separate worlds, for whatever reason they deem necessary. If you have no idea what that means then you probably shouldn’t be reading this further down.
How to Use
Allows you to assign any entity to a virtual world between 0 and 2,147,483,647.
Entities assigned to world 0 will be visible normally to all players. Making world 0 the default world in the game.
Entities in different worlds cannot physically interact with each other aside from explosions which can move vehicles(but not damage them).
NPC and NPC vehicle spawning is disabled in > 0 worlds. Wanted levels are also disabled.
SetEntityVirtualWorld(entity, worldid) --Assigns a virtual world to an entity, be it a ped, vehicle, object or player. GetEntityVirtualWorld(entity) --Returns an entity's virtual world as an integer.
repo private till fix this trash