From 6261dcf44416527045dd99e51ebc120172472082 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:19:54 +0100 Subject: [PATCH] fix: (bpt_addonaccount) Undefined global `MySQL`. In this PR the license year of the resource has been updated, also the issue of: "Undefined global `MySQL`" has been corrected, in the development environment while visual studio code was being used, the fxmanifest file has also been updated to version 1.0.3. --- server-data/resources/[bpt_addons]/bpt_addonaccount/LICENSE | 4 ++-- server-data/resources/[bpt_addons]/bpt_addonaccount/README.md | 2 +- .../resources/[bpt_addons]/bpt_addonaccount/fxmanifest.lua | 2 +- .../bpt_addonaccount/server/classes/addonaccount.lua | 2 ++ .../resources/[bpt_addons]/bpt_addonaccount/server/main.lua | 2 ++ 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/server-data/resources/[bpt_addons]/bpt_addonaccount/LICENSE b/server-data/resources/[bpt_addons]/bpt_addonaccount/LICENSE index e8e8b9ba3..3277ea90a 100644 --- a/server-data/resources/[bpt_addons]/bpt_addonaccount/LICENSE +++ b/server-data/resources/[bpt_addons]/bpt_addonaccount/LICENSE @@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - Copyright (C) 2024 bitpredator + Copyright (C) 2024-2025 bitpredator 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 @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - bpt_addonaccount Copyright (C) 2024 bitpredator + bpt_addonaccount Copyright (C) 2024-2025 bitpredator This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. diff --git a/server-data/resources/[bpt_addons]/bpt_addonaccount/README.md b/server-data/resources/[bpt_addons]/bpt_addonaccount/README.md index 58e2b11e7..de463a25e 100644 --- a/server-data/resources/[bpt_addons]/bpt_addonaccount/README.md +++ b/server-data/resources/[bpt_addons]/bpt_addonaccount/README.md @@ -1,7 +1,7 @@

bpt_addonaccount

Discord -Copyright (C) 2024 bitpredator +Copyright (C) 2024-2025 bitpredator 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. diff --git a/server-data/resources/[bpt_addons]/bpt_addonaccount/fxmanifest.lua b/server-data/resources/[bpt_addons]/bpt_addonaccount/fxmanifest.lua index dbc5331a2..cf9f1fbb8 100644 --- a/server-data/resources/[bpt_addons]/bpt_addonaccount/fxmanifest.lua +++ b/server-data/resources/[bpt_addons]/bpt_addonaccount/fxmanifest.lua @@ -4,7 +4,7 @@ game("gta5") author("bitpredator") description("Allows resources to store account data, such as society funds") lua54("yes") -version("1.0.2") +version("1.0.3") server_scripts({ "@es_extended/imports.lua", diff --git a/server-data/resources/[bpt_addons]/bpt_addonaccount/server/classes/addonaccount.lua b/server-data/resources/[bpt_addons]/bpt_addonaccount/server/classes/addonaccount.lua index c13d86f23..929278220 100644 --- a/server-data/resources/[bpt_addons]/bpt_addonaccount/server/classes/addonaccount.lua +++ b/server-data/resources/[bpt_addons]/bpt_addonaccount/server/classes/addonaccount.lua @@ -1,3 +1,5 @@ +---@diagnostic disable: undefined-global + function CreateAddonAccount(name, owner, money) local self = {} diff --git a/server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua b/server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua index 6d35f8209..276959a75 100644 --- a/server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua +++ b/server-data/resources/[bpt_addons]/bpt_addonaccount/server/main.lua @@ -1,3 +1,5 @@ +---@diagnostic disable: undefined-global + local AccountsIndex, Accounts, SharedAccounts = {}, {}, {} AddEventHandler("onResourceStart", function(resourceName)