Hello, can anyone help me with this? i always must use /sms . text i need /sms text and why i can't use example: /sms text\ntext\ntext ?
server-side
addCommandHandler("sms", function(player, cmd, sms, ...)
newSMS = table.concat({...}, " ")
sms = newSMS
triggerClientEvent("onSMSTrigger", player, sms)
end)
client-side
local screenW, screenH = guiGetScreenSize()
local sms = ""
addEvent("onSMSTrigger", true)
addEventHandler("onSMSTrigger", getRootElement(), function (newSMS)
sms = newSMS
end)
addEventHandler("onClientRender", getRootElement(), function()
dxDrawText(sms, (screenW * 0.2462) + 1, (screenH * 0.6833) + 1, (screenW * 0.8838) + 1, (screenH * 0.9933) + 1, tocolor(0, 0, 0, 255), 2.50, "default-bold", "left", "top", true, true, false, true, false)
dxDrawText(sms, screenW * 0.2462, screenH * 0.6833, screenW * 0.8838, screenH * 0.9933, tocolor(255, 255, 255, 255), 2.50, "default-bold", "left", "top", true, true, false, true, false)
end)