killercycDDS, zapewne ma ale odczytuje dane z tabeli wnioskuj?c po pierwszym argumencie dxDrawText. Dlatego niech poda wi?cej kodu bo to tam musi by? gdzie? problem.
function handleDisplay()
if showthebubbles then
for i,v in ipairs(textsToDraw) do
if isElement(v[1]) then
if getElementHealth(v[1]) > 0 then
local camPosXl, camPosYl, camPosZl = getPedBonePosition (v[1], 6)
local camPosXr, camPosYr, camPosZr = getPedBonePosition (v[1], 7)
local x,y,z = (camPosXl + camPosXr) / 2, (camPosYl + camPosYr) / 2, (camPosZl + camPosZr) / 2
local cx,cy,cz = getCameraMatrix()
local px,py,pz = getElementPosition(v[1])
local distance = getDistanceBetweenPoints3D(cx,cy,cz,px,py,pz)
local posx,posy = getScreenFromWorldPosition(x,y,z+0.020*distance+0.10)
local elementtoignore1 = getPedOccupiedVehicle(getLocalPlayer()) or getLocalPlayer()
local elementtoignore2 = getPedOccupiedVehicle(v[1]) or v[1]
if posx and distance <= 45 and ( isLineOfSightClear(cx,cy,cz,px,py,pz,true,true,false,true,false,true,true,elementtoignore1) or isLineOfSightClear(cx,cy,cz,px,py,pz,true,true,false,true,false,true,true,elementtoignore2) ) and ( not maxbubbles or v[4] < maxbubbles ) then -- change this when multiple ignored elements can be specified
local width = dxGetTextWidth(v[2],1,"default")
local r,g,b = 255,255,255
if v[3] == 2 then
r,g,b = getTeamColor(getPlayerTeam(v[1]))
end
dxDrawText(v[2],posx - (0.5 * width),posy - (v[4] * 20),posx - (0.5 * width),posy - (v[4] * 20),tocolor(r,g,b,255),1.01,"default","left","top",false,false,false,true,false)
end
end
end
end
end
end
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach