I have a problem , only played 20 seconds of audio, But the audio takes 2 minutes
form the browser plays full
function sound()
playSound("http://216.172.184.135:21/fastdl/soundtracks/soundtrack1.mp3")
end
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), sound)
I am trying to do a mysql login but I have a problem decrypting the password.
md5(md5(password).salt)
give me this error
login_mysql/server.lua:32: Bad argument @ 'md5' [Expected string at argument 1, got nil]
tops = {
["guest1"] = {points = 100, money = "198232"}
["rubi1416"] = {points = 30, money = "2323"}
}
table.sort(tops, function(a,b) return (tonumber(a.points)or 0) > (tonumber(b.points)or 0) end)
How can I sort this table by the number of points?
HEL PLISS
Is there any way to adapt the text size to all resolutions?
local sx, sy = guiGetScreenSize()
local font = dxCreateFont("font.ttf", 16)
dxDrawText(playername, sx * 0.3130, sy * 0.3167, sx * 0.4484, sy * 0.3704, tocolor(255, 255, 255, 255), 1, font, "center", "center", false, false, false, false, false)