mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +00:00
f5ed52d03b
With the callback checking whether a menu is still open, cancelling the previous timers by id is no longer needed. The table it kept them in was never emptied, so every open iterated over every id ever created and called ClearTimeout on all of them. That is quadratic, and clearTimeout only marks an id in xLib's CancelledTimeouts, which is cleared when the timer fires. Ids that had already fired stayed in there for good, in a table shared by every resource.
esx_menu_dialog
Simple script used for inputs.
Installation
- Add this to your
server.cfg:
start esx_menu_dialog
Legal
License
esx_menu_dialog - input dialog for ESX
Copyright (C) 2015-2024 Jérémie N'gadi
This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.
This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.
You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.