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

Loading…
Cancel
Save