OSRS Plugin API
    Preparing search index...

    Function getPlatform

    • Gets the platform of the current client.

      Returns PlatformType

      Enum value defined by PlatformType indicating the current platform.

      if(osrs.getPlatform() == osrs.PlatformType.PLATFORM_WINDOWS) then
      osrs.print("Platform: Windows")
      elseif (osrs.getPlatform() == osrs.PlatformType.PLATFORM_OSX) then
      osrs.print("Platform: OSX")
      elseif (osrs.getPlatform() == osrs.PlatformType.PLATFORM_IOS) then
      osrs.print("Platform: iOS")
      elseif (osrs.getPlatform() == osrs.PlatformType.PLATFORM_ANDROID) then
      osrs.print("Platform: Android")
      end