π«weapon
Last updated
Last updated
--> Example
local weapon_font = render.setup_weapon_font(12)
cheat.push_callback("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()
render.text(weapon_font, 200, 200, color(255, 255, 255, 255), weapon_icon)
end)