Just to put a note here you should disable the synchronize here because it's useless
https://wiki.multitheftauto.com/wiki/SetElementData
It's the fourth arguments
твои функции ничего не возвращают. чтобы от них что то получить добавь return
function getSelectedPlayerNametagText ()
return guiGridListGetItemText(gridlist2, guiGridListGetSelectedItem(gridlist2), 2)
end
There is no global Lua environment afaik, atleast not that I am aware of. Each resource has it's own environment.
But that doesn't mean a resource can't get information through http.
If you want MTA to native support custom Lua env. variables, you probably need to create a module or modify MTA itself.