Yes I am, but in this thread it clearly asks about the same instance use as with SA-MP in and for which I have developed many years, and there it did had the effect of a ‘true virtual instance’ (for the scripters) as to which the linked function doesn’t do.
The linked function only sets the players invisible but does not handle vehicles or other object at all.
There it was as simple as “SetVehicleVirtualWorld(vehicle, Vworld);” and same for player’s.
And since that was (for scripters atleast) considered a ‘true virtual world’ since that’s all they needed to do (and it worked very well).
This function to where is linked only makes the player invisible and attempts to set the collision to false (where the latter doesn’t seem to work well). From there on players would still need to make sure that:
- Vehicles that might be in the same ‘virtual instance’ are not ‘cross visible’
- make sure objects are handled in the correct ‘virtual instance’
- and make sure that other scripts (like playername labels for example) will recognize the script so it won’t start showing ‘invisible players’ by preventing floating texts.
Nevertheless I’m already working to see if i can re-produce what was made for SA-MP back then in GTA V, only have to find some more effective ways instead of calling a crapload of natives (to set every object, vehicle and player in it’s ‘correct world’).
Didn’t started that long ago with FiveM so not familair with all the (important) natives from the top of my mind yet, but will definitely look moor into this
EDIT:
To add to the problems i’m referring to, if we just take a look at the issues section on github of that project:
" Whats also really funny about this. Is if your in your IPL and someone comes into the same one & even tho you can’t see them you can pull out a gun and kill them. Or fight them."
These things will be need to overcome by something better than just setting certain players invincible, also a “fix” suggested there to change voice channels to prevent others from hearing footsteps of other players isn’t a good solution.
Another problem which I referred to (the objects) is the doors moving (when an instanced player is in the same IPL/interior and moves through a door, other players will actually see that door movie due to a ‘ghost’.
Will work on it if i can find other solutions or perhaps re-create the SA-MP VirtualWorld’s system, although this might take (quite) a while since I’ll have to do it all by myself and have limited time at the moment.