mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
e7d58e3166
Money, inventory and weapon mutators on the player class now return a boolean (true on success, false on failure) instead of returning nothing. Failure paths that previously threw via error() now warn and return false, so these methods never throw and always return a boolean. The change is additive; callers that ignore the return value are unaffected. The xPlayer type definitions are updated to match.
es_extended
Legal
es_extended
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/.