mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
17 lines
405 B
Lua
17 lines
405 B
Lua
NDCore = {}
|
|
ActivePlayers = {}
|
|
|
|
AddEventHandler("playerDropped", function()
|
|
local src = source
|
|
local char = ActivePlayers[src]
|
|
if not char then return end
|
|
char:unload()
|
|
end)
|
|
|
|
SetConvarServerInfo("ND_Core", GetResourceMetadata(GetCurrentResourceName(), "version", 0) or "invalid")
|
|
|
|
local file = LoadResourceFile(GetCurrentResourceName(), "query.sql")
|
|
if file then
|
|
MySQL.query(file)
|
|
end
|