π«weapon
Last updated
Last updated
--> Example
local weapon_font = draw.create_weapon_font(12)
callbacks.init("on_paint", function()
local player = entity.get_local()
if (player == nil) then
return
end
local player_weapon = entity.get_weapon_by_player(player)
if (player_weapon == nil) then
return
end
local weapon_icon = player_weapon:get_icon()
draw.string(weapon_font, 200, 200, color_rgba(255, 255, 255, 255), weapon_icon)
end)