here it goes:
function onSay(cid, words, param)
local t = {}
table.foreach(_G,function(k,v) table.insert(t,k) end)
table.sort( t)
doPlayerSendTextMessage(cid, 20, "Functions found:")
for y = 1, #t do
if type(_G[t[y]]) == "function" then
doPlayerSendTextMessage(cid, 22, t[y])...