Jump to content

dx Help


ali

Recommended Posts

Posted
  
  
addCommandHandler("texts",function(cmd,...) 
Newmsgg = table.concat({...}," ") 
setElementData(localPlayer,"localMsg",false) 
setElementData(localPlayer,"localMsg",Newmsgg) 
addEventHandler("onClientRender",root,drawText) 
if not isTimer(removeChatBubble) then 
removeChatBubble = setTimer(function() 
removeEventHandler("onClientRender",root,drawText) 
end,10000,1) 
else 
killTimer(removeChatBubble)  
removeChatBubble = setTimer(function() 
removeEventHandler("onClientRender",root,drawText) 
setElementData(localPlayer,"localMsg",false) 
end,10000,1) 
end 
end) 
  
local screenWidth, screenHeight = guiGetScreenSize ( )  
  
  
  
-function drawText() 
for i,v in ipairs(getElementsByType("player")) 
    local playerX, playerY, playerZ = getElementPosition ( localPlayer )  
dxDrawRectangle(500,screenHeight - 550,275,75,tocolor(255,255,255,80)) 
dxDrawText(Newmsgg,500,screenHeight - 550 ,screenWidth,screenHeight,tocolor(0,0,0,255),1,"pricedown") 
end 
  

I want the dxdrawings to be seen by everyone in a short distance

Posted

All what you need :

getScreenFromWorldPosition() 
getCameraMatrix() 
getDistanceBetweenPoints3D() 

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

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...