Firespider Posted May 2, 2024 Share Posted May 2, 2024 Hello, I need some help with writing out data using a cycle, but the problem is that the DxDrawTexts flow into one, what can you do to help me with this for i, carID in ipairs(id) do dxDrawText(carID, sx*(DashPos[1]+.11), sy*(DashPos[2]+.125), sx*.6, sy*.6, tocolor(255, 255, 255), relx*1.5, rely*1.5, "default-bold", "center", "top") end Link to comment
Dope88 Posted May 2, 2024 Share Posted May 2, 2024 We maybe need to get more information, what is your DashPos and more.. Link to comment
Firespider Posted May 2, 2024 Author Share Posted May 2, 2024 local DashPos = {.2, .2} Server Side: addEventHandler("onPlayerJoin", root, function () local serail = getPlayerSerial(source) local dq = dbQuery(db, "SELECT * FROM vehicle WHERE serial=?", serail) local result = dbPoll(dq, 250) if (#result > 0) then for i, car in ipairs(result) do outputChatBox(i) outputChatBox(car["carid"]) triggerClientEvent("CarData", source, car["carid"]) end end end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now