Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function playerjoin()
- addEventHandler( "onClientRender",getRootElement(),
- function createText ()
- for i, element in ipairs ( getElementsFromType("object") ) do
- if getElementData(element, "itemName") then
- local wx,wy,wz = getElementPosition(element)
- local text = getElementData(element, "itemName")
- local x,y,z = getScreenFromWorldPosition ( wx, wy, wz + 2 )
- local width = dxGetTextWidth ( text )
- dxDrawText ( text, x, y, x, y, tocolor ( 0, 0, 0, 255 ), 2, "arial" )
- outputDebugString("Drawing")
- end
- end
- end)
- end
- addEventHandler("onClientResourceStart", getRootElement(), playerjoin)
Advertisement
Add Comment
Please, Sign In to add comment