Search Results for

    Show / Hide Table of Contents

    Class Game

    Inheritance
    System.Object
    Game
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: GTA
    Assembly: ScriptHookVDotNet2.dll
    Syntax
    public static class Game

    Properties

    Name Description
    CurrentInputMode
    FPS

    Gets the current frame rate in frames per second.

    FrameCount

    Gets the total number of frames that have been rendered in this session.

    GameTime

    Gets how many milliseconds the game has been open in this session

    Globals
    IsLoading

    Gets a value indicating whether there is a loading screen being displayed.

    IsPaused

    Gets or sets a value indicating whether the pause menu is active.

    IsScreenFadedIn
    IsScreenFadedOut
    IsScreenFadingIn
    IsScreenFadingOut
    IsWaypointActive

    Gets a value indicating whether there is a waypoint set on the map.

    Language

    Gets the current game language.

    LastFrameTime

    Gets the time in seconds it took for the last frame to render.

    MaxWantedLevel

    Gets or sets the maximum wanted level a Player can receive.

    MissionFlag
    Nightvision
    Player

    Gets the Player that you are controlling.

    RadarZoom
    RadioStation

    Gets or sets the current radio station.

    ScreenResolution
    ShowsPoliceBlipsOnRadar
    ThermalVision
    TimeScale

    Gets or Sets the time scale of the game.

    Version

    Gets the version of the game.

    WantedMultiplier

    Methods

    Name Description
    DisableAllControlsThisFrame(Int32)
    DisableControl(Int32, Control)
    DisableControlThisFrame(Int32, Control)
    DoAutoSave()

    Performs an automatic game save.

    EnableAllControlsThisFrame(Int32)
    EnableControl(Int32, Control)
    EnableControlThisFrame(Int32, Control)
    FadeScreenIn(Int32)
    FadeScreenOut(Int32)
    GenerateHash(String)

    Calculates a Jenkins One At A Time hash from the given System.String which can then be used by any native function that takes a hash.

    GetControlNormal(Int32, Control)
    GetControlValue(Int32, Control)
    GetDisabledControlNormal(Int32, Control)
    GetGXTEntry(String)
    GetUserInput(WindowTitle, Int32)
    GetUserInput(WindowTitle, String, Int32)

    Creates an input box for the user to input text using the keyboard.

    GetUserInput(Int32)
    GetUserInput(String, Int32)
    IsControlEnabled(Int32, Control)
    IsControlJustPressed(Int32, Control)
    IsControlJustReleased(Int32, Control)
    IsControlPressed(Int32, Control)
    IsDisabledControlJustPressed(Int32, Control)
    IsDisabledControlJustReleased(Int32, Control)
    IsDisabledControlPressed(Int32, Control)
    IsEnabledControlJustPressed(Int32, Control)
    IsEnabledControlJustReleased(Int32, Control)
    IsEnabledControlPressed(Int32, Control)
    IsKeyPressed(Keys)

    Gets whether the specified key is currently held down.

    Pause(Boolean)

    Pause/resume the game.

    PauseClock(Boolean)
    PlayMusic(String)
    PlaySound(String, String)
    SetControlNormal(Int32, Control, Single)
    ShowSaveMenu()

    Shows the save menu enabling the user to perform a manual game save.

    StopMusic(String)
    ☀
    ☾
    Back to top Copyright (C) 2015 crosire - zlib
    Generated with DocFX