get_gun
modules.get_gun(backpack: boolean?)Parameters
Example
local gun = modules.get_gun(false) -- will search the players character for a gun being held
if not gun then
local backpack_gun = modules.get_gun(true) -- will search for a gun in the players backpack
print(backpack_gun)
end Last updated