ali Posted August 23, 2016 Posted August 23, 2016 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 LUA Scripter [Tut]How to add maps using in-game script editor [Tut]How to get a hosted MTA Sa Server for free
Walid Posted August 23, 2016 Posted August 23, 2016 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
idarrr Posted August 23, 2016 Posted August 23, 2016 use getDistanceBetweenPoints3D if you want to get player in short distance. Open for cooperation. Discord: idarrr#7935
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now