Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getServerIP()
- local serverIP
- callRemote("http://ip-api.com/json/?fields=query",function(data)
- if data then
- serverIP = data.query
- outputChatBox(serverIP) -- got ip
- end
- end)
- return serverIP
- end
- outputChatBox(serverIP) -- got nil
- local ip = getServerIP()
- outputChatBox(ip) -- got nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement