Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

HasWeapon

Matias Salas edited this page Dec 27, 2020 · 1 revision

Server-Side

Player.HasWeapon(WeaponName)

This function determines if the player has a weapon.

Arguments

Argument Type Optional Default Value Explanation
WeaponName string No - Weapon name

Example

local _Player = Player(source)
if _Player.HasWeapon("weapon_pistol") then
    print("Player has pistol in his inventory")
end