Send msg table with string keys in mtt

This commit is contained in:
Athozus 2023-03-08 19:36:15 +01:00
parent 0ce6a2d099
commit 69bb0fb53e
No known key found for this signature in database
GPG key ID: B50895022E8484BF

View file

@ -4,7 +4,7 @@ mtt.register("send mail", function(callback)
auth_handler.set_password("player2", "") auth_handler.set_password("player2", "")
-- send a mail -- send a mail
mail.send("player1", "player2", "something", "blah") mail.send({from = "player1", to = "player2", subject = "something", body = "blah"})
-- check the receivers inbox -- check the receivers inbox
local list2 = mail.getPlayerInboxMessages("player2") local list2 = mail.getPlayerInboxMessages("player2")