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

IsPlayerPaused returns wrong result #43

Closed
Bios-Marcel opened this issue Dec 26, 2016 · 6 comments
Closed

IsPlayerPaused returns wrong result #43

Bios-Marcel opened this issue Dec 26, 2016 · 6 comments

Comments

@Bios-Marcel
Copy link

Bios-Marcel commented Dec 26, 2016

Sometimes returns true, even tho the player is not paused at all.

What did i do when it occured? I removed his vehicle, removed all streamed objects(icognito Streamer), loaded new objects and tried to spawn him with "IsPlayerPaused"as condition. At that point and time he was: Spawned, Onfoot, not paused

@karimcambridge
Copy link
Contributor

Just remember, lag can cause that!

@Bios-Marcel
Copy link
Author

Bios-Marcel commented Dec 26, 2016

It always happens at the point.

Let's say it is because of lag, can i increase the AFK time limit or should i jsut use GetPlayerPausedTime and find a good value myself?

@Crayder
Copy link

Crayder commented Dec 26, 2016

or should i jsut use GetPlayerPausedTime and find a good value myself?

This! IsPlayerPaused tells us if the player isn't updating for some pre-chosen time, GetPlayerPausedTime tells us how long ago the player was updating.

Also, there is a SetAFKAccuracy/GetAFKAccuracy already in the source, perhaps it should be made a native.

@spmn
Copy link
Contributor

spmn commented Dec 28, 2016

@Crayder Those functions are registered as natives, too.

@ghost
Copy link

ghost commented Dec 28, 2016

These natives already in inc too loo

@Crayder
Copy link

Crayder commented Dec 28, 2016

Huh, I never noticed them... damn... xD

@ghost ghost closed this as completed Jun 13, 2017
@djacicd djacicd mentioned this issue Nov 21, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants