Commit Graph

12 Commits

Author SHA1 Message Date
Kakarot 6dbbfed6c7 Reduce client loop CPU usage; tweak Kick timing
Increase client loop default sleep from 0 to 1000 to avoid a tight busy-wait when the player is not logged in, reducing CPU usage. In server/functions.lua move the Wait(100) out of the inner Kick loop so the DropPlayer thread is spawned immediately and the short delay happens after the loop, improving timing and avoiding blocking behavior.
2026-04-20 18:51:33 -05:00
Kakarot a73e878487 Weapon attachment rework 2023-11-03 09:40:35 -05:00
Duo 7f03857fe6 Add check for 'isinlaststand'
Prevents player taking damage from hunger after they are already downed.
2023-01-13 10:52:38 -08:00
SuperDaniel 2120ce506d Update loops.lua (#749)
Correction of typographical error.

Co-authored-by: BerkieBb <82737367+BerkieBb@users.noreply.github.com>
2022-07-24 00:10:56 +03:00
TheiLLeniumStudios db11c7dcec Fix linting issues 2022-05-04 08:08:29 +00:00
BerkieBb 3fcbf70016 optimize(loops): use core playerdata 2022-02-18 10:00:16 +01:00
darknight2590 430d40db6a feat (player/status): Added isdead check to hunger/thirst check thread 2022-02-16 20:25:53 +11:00
Atikur Rahaman Santo 07b2107898 is logged in 2021-11-26 19:37:53 +06:00
Taso a5ebf4b9ce chore(styling): ensure consistent indentation & define editorconfig 2021-10-13 21:54:57 -04:00
Kakarot 923f3d3a31 ⚠️ Major Update ⚠️
- Major cleanup of all files including reformatting & notations
- Added an optional export to add to scripts as an alternative to import.lua
- Added player state to OnPlayerLoaded so no more need for isLoggedIn inside scripts
- Updated all events to the new RegisterNetEvent and got rid of unneeded handlers
- Added the ability for ACE permissions with commands
- Added two new config options for player update interval and status update
- Changed players table to use citizenid column as primary key <-- very important
- Overall sloppy code cleanup, removal of unused code, got rid of nil checks
2021-09-24 22:46:20 -06:00
GhzGarage 4d4feeed04 Change coord grabbing back to client 2021-07-07 17:59:44 -05:00
GhzGarage 36a139cc09 easier file management 2021-04-08 19:11:32 -05:00