2023-07-09 21:19:35 +02:00
|
|
|
NDCore = {}
|
2023-07-09 03:07:46 +02:00
|
|
|
ActivePlayers = {}
|
2022-07-16 04:46:27 +02:00
|
|
|
|
2023-07-09 03:07:46 +02:00
|
|
|
AddEventHandler("playerDropped", function()
|
|
|
|
|
local src = source
|
|
|
|
|
local char = ActivePlayers[src]
|
|
|
|
|
if not char then return end
|
|
|
|
|
char:unload()
|
2022-11-19 18:28:57 +01:00
|
|
|
end)
|
2022-11-30 03:32:52 +01:00
|
|
|
|
2023-07-09 03:07:46 +02:00
|
|
|
SetConvarServerInfo("ND_Core", GetResourceMetadata(GetCurrentResourceName(), "version", 0) or "invalid")
|
2023-07-10 02:31:42 +02:00
|
|
|
|
|
|
|
|
local file = LoadResourceFile(GetCurrentResourceName(), "query.sql")
|
|
|
|
|
if file then
|
|
|
|
|
MySQL.query(file)
|
|
|
|
|
end
|