var weapons = {
0: [7, 8, 10, 11, 13, 14, 16, 17, 19, 23, 24, 25, 26, 27, 28, 29, 33, 34, 35, 38, 40, 37, 39, 60], // main weapons
1: [1, 2, 3, 4, 30, 32, 36, 61, 63, 64], // second weapons
2: [31, 41, 42, 59, 69, 74, 75, 76, 78, 80,500,505,506,507,508,509,512,514,515,516,519,520,522,523], // knifes
3: [43, 44, 45, 46, 47, 48, 68, 81, 82, 83, 84], // grenadiers
4: [49, 70, 85] // explosive huynya
}
register_callback("render", function() {
var maingun = (entity.get_weapon_id(entity.get_local_player()) == 7)
var secondgun = (entity.get_weapon_id(entity.get_local_player()) == 1)
var knifegun = (entity.get_weapon_id(entity.get_local_player()) == 59)
render.filled_rect([screen_size[0]-225, screen_size[1]-175], [200,40], maingun ? [200,200,200,200] : [25,25,25,200], 2)
render.filled_rect([screen_size[0]-225, screen_size[1]-125], [200,40], secondgun ? [200,200,200,200] : [25,25,25,200], 2)
render.filled_rect([screen_size[0]-225, screen_size[1]-75], [200,40], knifegun ? [200,200,200,200] : [25,25,25,200], 2)
})