Skip to content

vicuuu/fxDrawRectangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fxDrawRectangle

Rectangle shader for Multi Theft Auto


⚙️ Usage

drawRectangle(x, y, w, h, {
   fill = {
       color = {r, g, b, a}, 
       radius = number
   },
   border = {
       color = {r, g, b, a}, 
       size = number
   },
   gradient = {
       direction = 'left' | 'right' | 'top' | 'bottom',
       alpha_start = number (0-100% or 0-255),
       percent_start = number (0-100),
       alpha_end = number (0-100% or 0-255),
       percent_end = number (0-100)
   },
   postGUI = bool
})

🎨 Presentation

Fill

Example

drawRectangle(x, y, w, h, {
     fill = {color = {51, 161, 224, 255}, radius = 6},
     border = {color = {21, 77, 113, 255}, size = 2},
 })
Left

Example

drawRectangle(x, y, w, h, {
     fill = {color = {51, 161, 224, 255}, radius = 6},
     border = {color = {21, 77, 113, 255}, size = 2},
     gradient = {direction = 'left', alpha_start = 100, percent_start = 0, alpha_end = 0, percent_end = 100},
 })
Right

Example

drawRectangle(x, y, w, h, {
     fill = {color = {51, 161, 224, 255}, radius = 6},
     border = {color = {21, 77, 113, 255}, size = 2},
     gradient = {direction = 'right', alpha_start = 100, percent_start = 0, alpha_end = 0, percent_end = 100},
 })
Top

Example

drawRectangle(x, y, w, h, {
     fill = {color = {51, 161, 224, 255}, radius = 6},
     border = {color = {21, 77, 113, 255}, size = 2},
     gradient = {direction = 'top', alpha_start = 100, percent_start = 0, alpha_end = 0, percent_end = 100},
 })
Bottom

Example

drawRectangle(x, y, w, h, {
     fill = {color = {51, 161, 224, 255}, radius = 6},
     border = {color = {21, 77, 113, 255}, size = 2},
     gradient = {direction = 'bottom', alpha_start = 100, percent_start = 0, alpha_end = 0, percent_end = 100},
 })

About

Rectangle shader for Multi Theft Auto (MTA:SA)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published