DjMixCuma Posted October 5, 2012 Share Posted October 5, 2012 Hello, how to create this: i dont have an ideas to create this. Can you give me example code for this???? Link to comment
Guest Guest4401 Posted October 5, 2012 Share Posted October 5, 2012 getElementPosition getScreenFromWorldPosition dxDrawText Link to comment
DjMixCuma Posted October 5, 2012 Author Share Posted October 5, 2012 THIS WILL WORK??? distance = 40 addCommandHandler("opis", opispokaz) function opispokaz(source, message) local player = getElementsByType("player") message = string.gsub(message, "#%x%x%x%x%x%x", "") for k,gracz in pairs(player) do if isElementOnScreen(gracz) then local x,y,z=getElementPosition(gracz) local X,Y=getScreenFromWorldPosition(x,y,z) local px,py,pz=getElementPosition(getLocalPlayer()) local dystans=getDistanceBetweenPoints3D(x,y,z,px,py,pz) if dystans < distance then dxDrawText(" ".. message .." ")",X,Y) end end end end end addEventHandler ( "onClientRender", getRootElement (), opispokaz) Link to comment
Guest Guest4401 Posted October 5, 2012 Share Posted October 5, 2012 THIS WILL WORK??? No. Link to comment
denny199 Posted October 5, 2012 Share Posted October 5, 2012 LOL WhY?? Because it's wrong. Please, check the wiki again. And test self-made scripts self, don't ask to us. Link to comment
DjMixCuma Posted October 7, 2012 Author Share Posted October 7, 2012 How to fix this script, because 0 errors in debugscript, but text not showing on ped?? please help me Link to comment
DjMixCuma Posted October 16, 2012 Author Share Posted October 16, 2012 @REFRESH Please help me because i dont know how to create this PLEASE Link to comment
myonlake Posted October 16, 2012 Share Posted October 16, 2012 You don't come to the scripting section and say: Hello, how to make this, code plz. You need to learn before even asking anything, you can't do anything without knowing the basics first. https://wiki.multitheftauto.com/wiki/Scr ... troduction http://www.lua.org/pil/ Please come back after you have learnt something - we do not make scripts for you. Link to comment
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