Skip to content

feat: Add cooldown in lib.lua#734

Open
SUWAROW wants to merge 3 commits intoQbox-project:mainfrom
SUWAROW:main
Open

feat: Add cooldown in lib.lua#734
SUWAROW wants to merge 3 commits intoQbox-project:mainfrom
SUWAROW:main

Conversation

@SUWAROW
Copy link

@SUWAROW SUWAROW commented Jan 11, 2026

Description

Stop flood request to server

  • Added cooling helpers to qbx_core/modules/lib.lua:
    • qbx.isCooldownReady tracks per-key cooldowns and optionally notifies players, with built-in flood control.
    • qbx.setCooldown allows manual timestamp updates when needed.
    • Inline docs describe parameters and defaults.

Checklist

  • I have personally loaded this code into an updated Qbox project and checked all of its functionality.
  • My pull request fits the contribution guidelines & code conventions.

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

Successfully merging this pull request may close these issues.

1 participant