Bvural41 1
Bvural41
kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
mavzermete 1
mavzermete
xranzei 1
xranzei
Hikaye Ekle

BCC minigames

  • Konuyu başlatan Konuyu başlatan Nizam-ı Alem
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 1
  • Görüntüleme Görüntüleme 70

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

RedM projelerine eğlenceli mini oyunlar eklemek isteyen geliştiriciler için bu betik harika bir seçenektir. Taş kağıt makas, kilit açma ve beceri kontrolleri gibi API tabanlı oyunların bir koleksiyonunu içerir ve bunlar RedM projenize kolayca entegre edilebilir. Bu mini oyunlar projenize fazladan bir etkileşim ve eğlence katmanı ekleyebilir ve kullanıcılarınızın yeni ve heyecan verici şekillerde etkileşim kurmasına yardımcı olabilir. Deneyin ve geliştirme sürecinizi nasıl iyileştirebileceğini görün!

Özellikler​

  1. Taş kağıt makas
  2. Kilit açma
  3. beceri kontrolü

Kurulum​

  1. En son sürümü bcc-minigames.zipşu adresten indirin
  2. Çıkarın ve klasörünüze minigamesyerleştirinresources
  3. ensure minigamesDosyanıza ekleyinserver.cfg
  4. Sunucunuzu yeniden başlatın (her gece yeniden başlatma yapmadığınız sürece)

API Belgeleri​

Kilit açma​

Kod:
local MiniGame = exports['bcc-minigames'].initiate()



RegisterCommand('playgame', function(args, rawCommand)

    local cfg = {

        focus = true, -- Should minigame take nui focus

        cursor = true, -- Should minigame have cursor  (required for lockpick)

        maxattempts = 3, -- How many fail attempts are allowed before game over

        threshold = 10, -- +- threshold to the stage degree (bigger number means easier)

        hintdelay = 500, --milliseconds delay on when the circle will shake to show lockpick is in the right position.

        stages = {

            {

                deg = 25 -- 0-360 degrees

            },

            {

                deg = 0 -- 0-360 degrees

            },

            {

                deg = 300 -- 0-360 degrees

            }

        }

      

    }





    MiniGame.start('lockpick', cfg, function(result)

        print("Unlocked?", result.unlocked) -- true/false

    end)

end)

Beceri Kontrolü​

Kod:
local MiniGame = exports['bcc-minigames'].initiate()



RegisterCommand('playgame', function(args, rawCommand)

    local cfg = {

        focus = true, -- Should minigame take nui focus (required)

        cursor = false, -- Should minigame have cursor

        maxattempts = 3, -- How many fail attempts are allowed before game over

        type = 'bar', -- What should the bar look like. (bar, trailing)

        userandomkey = true, -- Should the minigame generate a random key to press?

        keytopress = 'B', -- userandomkey must be false for this to work. Static key to press

        keycode = 66, -- The JS keycode for the keytopress

        speed = 20, -- How fast the orbiter grows

        strict = false -- if true, letting the timer run out counts as a failed attempt

    }





    MiniGame.start('skillcheck', cfg, function(result)

        print("Passed?", result.passed) -- true/false

    end)

end)

Taş Kağıt Makas​

Kod:
local MiniGame = exports['bcc-minigames'].initiate()



RegisterCommand('playgame', function(args, rawCommand)

    local cfg = {

        focus = true, -- Should minigame take nui focus

        cursor = true, -- Should minigame have cursor (required)

        allowretry = false --Allows use to start the minigame over.

    }





    MiniGame.start('rps', cfg, function(result)

        print("Result?", result.result) -- win, lose, tie

    end)

end)

1744042885259.png
 
Son düzenleme:

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst