Jump to content

[Question] Any onPlayerIdle(s)?


Kazafka

Recommended Posts

Posted

I mean, does anyone have a script, that checks if player is afk? Like, you know it is (kinda infinite) loop, and checks if player is afk. Any advance?

  • Moderators
Posted
5 minutes ago, VaporZ said:

you know it is (kinda infinite) loop, and checks if player is afk.

See this function + example:

https://wiki.multitheftauto.com/wiki/GetPlayerIdleTime

 

  • Like 1
  • Thanks 1

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...