local function creatureSayCallback(cid, type, msg)
if not npcHandler:isFocused(cid) then
return false
end
local player = Player(cid)
if isInArray({"soft", "boots", "repair", "soft boots"}, msg) then
npcHandler:say("Do you want to repair your worn soft boots for 10000 gold coins?", cid)
npcHandler.topic[cid] = 1
elseif msgcontains(msg, 'yes') and npcHandler.topic[cid] == 1 then
...
just do collectgarbage("count") / 1024 for MB
and yes, if your process is using ~4.4 gigs of memory it's your sources, not Lua
have you restarted your server and watched memory as time goes on?
generally if you have a memory leak over time you'll see it keep growing and growing
look up valgrind on google, learn how to use it to search for memory leaks in your engine
did you just compile a new tfs?
you need key.pem file now