mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-11-23 11:58:34 +00:00
feat: load query.sql
This commit is contained in:
1 parent
426be404f3
commit
72f4b011ec
1 file changed
+5
@@ -9,3 +9,8 @@ AddEventHandler("playerDropped", function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
SetConvarServerInfo("ND_Core", GetResourceMetadata(GetCurrentResourceName(), "version", 0) or "invalid")
|
SetConvarServerInfo("ND_Core", GetResourceMetadata(GetCurrentResourceName(), "version", 0) or "invalid")
|
||||||
|
|
||||||
|
local file = LoadResourceFile(GetCurrentResourceName(), "query.sql")
|
||||||
|
if file then
|
||||||
|
MySQL.query(file)
|
||||||
|
end
|
||||||
Reference in new issue
Block a user