Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1.  
  2.  
  3. RegisterCommand("verificarLigacoes", function(source, args)
  4.     local argString = table.concat(args, " ")
  5.     MySQL.Async.fetchAll("INSERT INTO ligacoes(id, name, date) VALUES(@source, @name, @date)",    
  6.  
  7.     {["@source"] = GetPlayerIdentifiers(source)[1], ["@name"] = GetPlayerName(source), ["@date"] = os.date("%Y%m%d%H%M%S")},
  8.        
  9.         function (result)
  10.         TriggerClientEvent("output", source, "^2".. argString.. "^0")
  11.  
  12.     end)
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement