Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinity #1

Open
ShadowOfVoid opened this issue Mar 11, 2021 · 3 comments
Open

Infinity #1

ShadowOfVoid opened this issue Mar 11, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@ShadowOfVoid
Copy link

Does is support infinity or big mod also ?

@locomoco28
Copy link
Owner

At the moment this is only meant to be a prototype to be used as reference to be implemented by yourself. I'm still new into FiveM development and don't know of commonly used resources.

Could you maybe tell me what infinity or big mod is? :)

This resource should work with anything as long as you don't have any scripted cameras active. It works by creating a scripted camera which gets attached to another player's ped. Then, moving and looking around changes the value of the attachment offset or the camera rotation.
In addition, it freezes the player so you don't walk around in the world whilst moving the camera, and teleports them to the spectated player, because otherwise the world around the spectated player wouldn't load on your side while spectating.

@ShadowOfVoid
Copy link
Author

sry for late respond , please read this post for best explanation of infinity mode , if you get teleported while you are spectating then it wil support infinity also , cause as the worlds loading the infinity mode will only get players in a certain distance of your ped

@locomoco28
Copy link
Owner

Oh that's what you meant!
Yeah, I've been testing with OneSync On (which seems to be infinity enabled)

There was an issue spectating players tho which I didn't work on yet. Because OneSync is only loading the players which are nearby, I cannot just receive the location of the nearest player, but instead need to teleport to the player's coordinates first, and then activate my camera.
I had the idea of just streaming the player's location to the server every 2 seconds or so and then just teleporting the player to the coordinates, ideally beneath the ground so the spectator is not visible to the spectated player. Then I'd have to get the spectated player's ped and attach the camera on them.

My school block as finished and I'm back at work (got 5w school, 10w work as an apprentice) so I won't be able to put as much time into this as I did before (because it gets exhausting to code at work and then again privately).
If you have any experience of scripting yourself feel free to open a pull request :)

@locomoco28 locomoco28 added the enhancement New feature or request label Mar 16, 2021
@locomoco28 locomoco28 added this to the OneSync compatibility milestone Mar 16, 2021
@locomoco28 locomoco28 pinned this issue Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants