# steamworks

- **İngilizce aslı:** https://wiki.facepunch.com/gmod/steamworks
- **Çeviri tarihi:** 2025-09-08

Steamworks ile ilgili fonksiyonlar.

## Metotlar

steamworks.[ApplyAddons](https://gmod.tr/wiki/steamworks.ApplyAddons)()

İstemcinin eklentilerini yeniler.

steamworks.[Download](https://gmod.tr/wiki/steamworks.Download)( [string](https://gmod.tr/wiki/string) workshopPreviewID, [boolean](https://gmod.tr/wiki/boolean) uncompress, [function](https://gmod.tr/wiki/function) resultCallback )

Steam Atölyesi öğelerini indirirken steamworks.DownloadUGC kullanmalısınız. Bu, önizleme görselleri için eski bir fonksiyondur. Belirtilen eklentiden bir dosya indirir ve onu garrysmod/cache/ klasörüne bir .cache dosyası olarak kaydeder. Bu çoğunlukla eklentinin önizleme görselini indirmek için kullanılır. Alınan dosya bir resimse ve IMaterial'a ihtiyacınız varsa, geri çağrıdan (callback) sağlanan yolla AddonMaterial'ı kullanın.

steamworks.[DownloadUGC](https://gmod.tr/wiki/steamworks.DownloadUGC)( [string](https://gmod.tr/wiki/string) workshopID, [function](https://gmod.tr/wiki/function) resultCallback )

steamworks.[FileInfo](https://gmod.tr/wiki/steamworks.FileInfo)( [string](https://gmod.tr/wiki/string) workshopItemID, [function](https://gmod.tr/wiki/function) resultCallback )

Belirtilen Steam Atölyesi eklentisi hakkında bilgi alır.

steamworks.[GetList](https://gmod.tr/wiki/steamworks.GetList)( [string](https://gmod.tr/wiki/string) type, [table](https://gmod.tr/wiki/table) tags, [number](https://gmod.tr/wiki/number) offset, [number](https://gmod.tr/wiki/number) numRetrieve, [number](https://gmod.tr/wiki/number) days, [string](https://gmod.tr/wiki/string) userID, [function](https://gmod.tr/wiki/function) resultCallback )

Steam Atölyesi eklentilerinin özelleştirilmiş bir listesini alır.

[string](https://gmod.tr/wiki/string) steamworks.[GetPlayerName](https://gmod.tr/wiki/steamworks.GetPlayerName)( [string](https://gmod.tr/wiki/string) steamID64 )

Bunu kullanmamanızı tavsiye ederiz. Gelecekteki bir güncellemede değiştirilebilir veya kaldırılabilir. Bunun yerine steamworks.RequestPlayerInfo'nun geri çağrısını (callback) kullanmalısınız. Oyuncuların adını 64-bit SteamID'lerine göre alır. Bu fonksiyonu çağırmadan önce steamworks.RequestPlayerInfo'yu makul bir süre önce çağırmanız gerekir.

[boolean](https://gmod.tr/wiki/boolean) steamworks.[IsSubscribed](https://gmod.tr/wiki/steamworks.IsSubscribed)( [string](https://gmod.tr/wiki/string) workshopItemID )

İstemcinin belirtilen Steam Atölyesi öğesine abone olup olmadığını döndürür.

steamworks.[OpenWorkshop](https://gmod.tr/wiki/steamworks.OpenWorkshop)()

Steam arayüz tarayıcısında atölye web sitesini açar.

steamworks.[Publish](https://gmod.tr/wiki/steamworks.Publish)( [string](https://gmod.tr/wiki/string) filename, [string](https://gmod.tr/wiki/string) image, [string](https://gmod.tr/wiki/string) name, [string](https://gmod.tr/wiki/string) desc, [table](https://gmod.tr/wiki/table) tags, [function](https://gmod.tr/wiki/function) callback, [number](https://gmod.tr/wiki/number) fileid = nil, [string](https://gmod.tr/wiki/string) changelist = "None given." )

Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız. Dupe'ları, kayıtları veya demoları atölyede yayınlar.

steamworks.[RequestPlayerInfo](https://gmod.tr/wiki/steamworks.RequestPlayerInfo)( [string](https://gmod.tr/wiki/string) steamID64, [function](https://gmod.tr/wiki/function) callback )

Daha sonra steamworks.GetPlayerName ile kullanılmak üzere SteamID64'e sahip oyuncunun bilgilerini ister.

[string](https://gmod.tr/wiki/string) steamworks.[SetFileCompleted](https://gmod.tr/wiki/steamworks.SetFileCompleted)( [string](https://gmod.tr/wiki/string) workshopid )

Atölye öğesini oyuncu tarafından "tamamlandı" olarak ayarlar. Tamamlanan öğeler için Steam Atölyesi'nde görsel bir gösterge olacaktır.

[string](https://gmod.tr/wiki/string) steamworks.[SetFilePlayed](https://gmod.tr/wiki/steamworks.SetFilePlayed)( [string](https://gmod.tr/wiki/string) workshopid )

Bu eklentiyi oynayıp oynamadığınızı ayarlar. Bu, kullanıcıya Steam Atölyesi'nin kendisinde gösterilecektir:

steamworks.[SetShouldMountAddon](https://gmod.tr/wiki/steamworks.SetShouldMountAddon)( [string](https://gmod.tr/wiki/string) workshopItemID, [boolean](https://gmod.tr/wiki/boolean) shouldMount )

Bir eklentinin etkinleştirilip etkinleştirilmeyeceğini ayarlar. Güncellemek için sonrasında steamworks.ApplyAddons'u çağırın.

[boolean](https://gmod.tr/wiki/boolean) steamworks.[ShouldMountAddon](https://gmod.tr/wiki/steamworks.ShouldMountAddon)( [string](https://gmod.tr/wiki/string) workshopItemID )

Belirtilen Steam Atölyesi eklentisinin yüklenip yüklenmeyeceğini döndürür.

steamworks.[Subscribe](https://gmod.tr/wiki/steamworks.Subscribe)( [string](https://gmod.tr/wiki/string) workshopItemID )

Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız. Belirtilen atölye eklentisine abone olur. Güncellemek için sonrasında steamworks.ApplyAddons'u çağırın.

steamworks.[Unsubscribe](https://gmod.tr/wiki/steamworks.Unsubscribe)( [string](https://gmod.tr/wiki/string) workshopItemID )

Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız. Belirtilen atölye eklentisinden aboneliği kaldırır. Güncellemek için sonrasında steamworks.ApplyAddons'u çağırın. Bu fonksiyon asla bir kullanıcının izni olmadan çağrılmamalıdır ve eklenti o anda kullanımda ise (yani: kullanıcı ana menüde değilse) çağrılmamalıdır, çünkü bu beklenmedik davranışlara yol açabilir.

steamworks.[ViewFile](https://gmod.tr/wiki/steamworks.ViewFile)( [string](https://gmod.tr/wiki/string) workshopItemID )

Belirtilen Steam Atölyesi öğesi için atölye web sitesini Steam arayüz tarayıcısında açar.

steamworks.[Vote](https://gmod.tr/wiki/steamworks.Vote)( [string](https://gmod.tr/wiki/string) workshopItemID, [boolean](https://gmod.tr/wiki/boolean) upOrDown )

Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız. Kullanıcının belirtilen eklenti için oy kullanmasını sağlar

steamworks.[VoteInfo](https://gmod.tr/wiki/steamworks.VoteInfo)( [string](https://gmod.tr/wiki/string) workshopItemID, [function](https://gmod.tr/wiki/function) resultCallback )

Bunu kullanmamanızı tavsiye ederiz. Gelecekteki bir güncellemede değiştirilebilir veya kaldırılabilir. Bunun yerine steamworks.FileInfo verilerini kullanın. Belirtilen eklentinin oy bilgisini alır.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/steamworks
