Rectangle shader for Multi Theft Auto
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
})Fill
drawRectangle(x, y, w, h, {
fill = {color = {51, 161, 224, 255}, radius = 6},
border = {color = {21, 77, 113, 255}, size = 2},
})Left
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
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
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},
})



