How to call a lua script function from a site?
I don’t know what POST request to send to the server to get a response!
I'm trying to do it like this:
[LUA]
function MTACheck(user)
account = getAccount(user)
if account then
return "OK"
else
return "ERROR"
end
end
[PYTHON]
import requests
ipp = '4*.17*.4*.4*:3***2' # it's my IP:PORT server adress
user = '6E860E******************8E0F65F2' #it's my login from server
req = requests.post(f'http://{ipp}/payment/call/MTAPaymentCheck', data = {'user': f'{user}'})
print( str(req.text) )
Received from the server: Access denied, please login