try something like this (the code was not tested and is just to give you an idea)Is it possible to make a drawbox appear only if I have a specific weapon? lua
require "lib.moonloader"
function main()
while not isSampAvailable() do wait(0) end
while true do
wait(0)
local W = getCurrentCharWeapon(PLAYER_PED)
if W == {weapon ID HERE}then
renderDrawBox(float posX, float posY, float sizeX, float sizeY, uint color)
end
end
end
try something like this (the code was not tested and is just to give you an idea)Is it possible to make a drawbox appear only if I have a specific weapon? lua
require "lib.moonloader"
function main()
while not isSampAvailable() do wait(0) end
while true do
wait(0)
local W = getCurrentCharWeapon(PLAYER_PED)
if W == {weapon ID HERE}then
renderDrawBox(float posX, float posY, float sizeX, float sizeY, uint color)
end
end
end