Jump to content

dxDrawRectangle Tool


Recommended Posts

So, just as the awesome topic name says, here it is!

So whats dxRec? dxRec is a tool for making dxDrawRectangles in-game and getting them easily outside MTA for usage!

With this resource you dont need to know much scripting, just some file editing to make rectangles!

Usage:

Type in '/dxRec' in the chat and follow the instructions.

'/color' must have a SPACE INBETWEEN EACH NUMBER. EACH NUMBER MUST BE 0-255. Eg: 160 0 0 180

'/del' will delete the last added rectangle showing.

Enjoy and have fun!

Greetz

HyPeX

https://community.multitheftauto.com/ind ... ls&id=9011

Note: Please use the community link as it counts downloads, also, please post if it was usefull or any problem!

External Download Link: here

Example result:

(Note one of them is alpha 0)

  
function DrawRectangleName()  
 local x,y = guiGetScreenSize() 
 dxDrawRectangle(x*0.21911764144897,y*0.20182292163372,x*0.49558824300766,y*0.5143228918314,-1275068416) 
 dxDrawRectangle(x*0.14779411256313,y*0.30598959326744,x*0.097794115543365,y*0.44661459326744,11842560) 
 dxDrawRectangle(x*0.60000002384186,y*0.33463540673256,x*0.21249997615814,y*0.40755209326744,-1275068416) 
 end  
 addEventHandler('onClientRender',getRootElement(), dxDrawRectangleName) 

xBkaYZX.jpg

Greetz

HyPeX

Link to comment

Castillo is right, as much great work you did there, good job and keep it up!

but many people will use GUIeditor because it has more features in a really easy-to-use way

I'm sure you can use your Lua skills to create something unique!

Link to comment

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