Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. function WebAPI:UpdateUserTier(player)
  2.         local response = HttpService:RequestAsync(
  3.             {
  4.             Url = API .. "/users/" .. tostring(player.UserId),
  5.             Method = "PUT",
  6.             Headers = {
  7.                 ["Content-Type"] = "application/json"
  8.             },
  9.             Body = HttpService:JSONEncode({
  10.                 Tier = CheckLicense(player)
  11.             })
  12.         }
  13.         )
  14.         if response.Success then
  15.             return 200
  16.         else
  17.             return 502
  18.         end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement