Table of Contents

Class PlayerWeaponExtensions

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Provides extension methods for the PlayerWeapon enum.

public static class PlayerWeaponExtensions
Inheritance
PlayerWeaponExtensions
Inherited Members

Methods

GetName(PlayerWeapon)

Gets the name of the specified PlayerWeapon.

public static string GetName(this PlayerWeapon weapon)

Parameters

weapon PlayerWeapon

The weapon to get the name for.

Returns

string

The name of the weapon, or "Invalid" if the weapon is not valid.