Because that's wrong, "content" is not the image, is the player name.
Try with this:
dxDrawImage( topX+theX, y+s(1), 16, 11, getElementData ( element, "Name" ) [ 1 ], 0, 0, 0, cWhite, drawOverGUI )
What do you mean by using outputChatBox with setTimer? you mean send a chat message after X time? if so, then is easy:
setTimer ( outputChatBox, 5000, 1, "Hello World!" )
blips = { }
addEvent ( "onZombieSpawn", true )
addEventHandler ( "onZombieSpawn", root,
function ( )
for _, v in ipairs ( getElementsByType ( "ped" ) ) do
if getElementData ( v, "zombie" ) then
if ( not blips [ v ] ) then
blips [ v ] = createBlipAttachedTo ( v, 0 )
end
end
end
end
)
addEvent ( "onZombieWasted", true )
addEventHandler ( "onZombieWasted", root,
function ( )
if ( isElement ( blips [ source ] ) ) then
destroyElement ( blips [ source ] )
end
end
)