add print request

test-utf-8
rubin 2 years ago
parent 25126adfa7
commit 83667a7e25
  1. 2
      TruckHUD.lua

@ -3288,6 +3288,7 @@ function transponder()
wait_for_response = true wait_for_response = true
local response_path = os.tmpname() local response_path = os.tmpname()
down = false down = false
sampfuncsLog("http://thprivate.deadpoo.net/" .. encodeJson(request_table))
download_id_4 = downloadUrlToFile( download_id_4 = downloadUrlToFile(
"http://thprivate.deadpoo.net/" .. encodeJson(request_table), "http://thprivate.deadpoo.net/" .. encodeJson(request_table),
response_path, response_path,
@ -3316,6 +3317,7 @@ function transponder()
local f = io.open(response_path, "r") local f = io.open(response_path, "r")
if f then if f then
local fileText = f:read("*a") local fileText = f:read("*a")
sampfuncsLog(fileText)
if fileText ~= nil and #fileText > 0 then if fileText ~= nil and #fileText > 0 then
try(function() try(function()
info = decodeJson(fileText) info = decodeJson(fileText)

Loading…
Cancel
Save