Jump to content

Please help


Recommended Posts

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


 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...