Search Results for

    Show / Hide Table of Contents

    Class Weapon

    Inheritance
    Object
    Weapon
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: GTA
    Assembly: ScriptHookVDotNet3.dll
    Syntax
    public sealed class Weapon

    Properties

    | Improve this Doc View Source

    Ammo

    Declaration
    public int Ammo { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    AmmoInClip

    Declaration
    public int AmmoInClip { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    CanUseOnParachute

    Declaration
    public bool CanUseOnParachute { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Components

    Declaration
    public WeaponComponentCollection Components { get; }
    Property Value
    Type Description
    WeaponComponentCollection
    | Improve this Doc View Source

    DefaultClipSize

    Declaration
    public int DefaultClipSize { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    DisplayName

    Declaration
    public string DisplayName { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Group

    Declaration
    public WeaponGroup Group { get; }
    Property Value
    Type Description
    WeaponGroup
    | Improve this Doc View Source

    Hash

    Declaration
    public WeaponHash Hash { get; }
    Property Value
    Type Description
    WeaponHash
    | Improve this Doc View Source

    InfiniteAmmo

    Declaration
    public bool InfiniteAmmo { set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    InfiniteAmmoClip

    Declaration
    public bool InfiniteAmmoClip { set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    IsPresent

    Declaration
    public bool IsPresent { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    LocalizedName

    Declaration
    public string LocalizedName { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    MaxAmmo

    Declaration
    public int MaxAmmo { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    MaxAmmoInClip

    Declaration
    public int MaxAmmoInClip { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Model

    Declaration
    public Model Model { get; }
    Property Value
    Type Description
    Model
    | Improve this Doc View Source

    Tint

    Declaration
    public WeaponTint Tint { get; set; }
    Property Value
    Type Description
    WeaponTint

    Methods

    | Improve this Doc View Source

    GetAllModels()

    Declaration
    public static Model[] GetAllModels()
    Returns
    Type Description
    Model[]
    | Improve this Doc View Source

    GetAllWeaponHashesForHumanPeds()

    Declaration
    public static WeaponHash[] GetAllWeaponHashesForHumanPeds()
    Returns
    Type Description
    WeaponHash[]
    | Improve this Doc View Source

    GetDisplayNameFromHash(WeaponHash)

    Declaration
    public static string GetDisplayNameFromHash(WeaponHash hash)
    Parameters
    Type Name Description
    WeaponHash hash
    Returns
    Type Description
    String

    Operators

    | Improve this Doc View Source

    Implicit(Weapon to WeaponHash)

    Declaration
    public static implicit operator WeaponHash(Weapon weapon)
    Parameters
    Type Name Description
    Weapon weapon
    Returns
    Type Description
    WeaponHash
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX