Giter Site home page Giter Site logo

diamondblackjack's Introduction

DiamondBlackjack

Hello everyone! I've spent the past 2 months working on blackjack in a style as similar to GTA:O as possible and I've decided that all servers should enjoy this so I'm releasing it!

N|Solid

Features:

  • All networked with up to 16 players playing at the same time
  • Works with OneSync & OneSync Infinity
  • All the juicy stuff you'd expect from blackjack
  • Optional fancy teleporter to enter diamond casino
  • Fancy menu showing how to play blackjack like GTA:O thanks to RageUI!
  • Dynamically configurable, ability to make any blackjack table playable

Notes:

  • This is not linked to any framework and works natively, to add chips/money into your framework/gamemode complete the two functions named tryTakeChips and giveChips at the top of sv_blackjack.lua
  • There is no splitting or double down at this time, may come in the future
  • You will need the Diamond Casino interior - There might be one on the forums somewhere, I don't know if I'm allowed to link the one I used, but just search "diamond casino fivem" in youtube. The download link is in the description in the first video.

Videos: https://streamable.com/fb5sg https://streamable.com/7gm49

How to install:

  1. Ensure you have a compatible Diamond Casino interior.
  2. Download/clone my forked modified version of RageUI https://github.com/rubbertoe98/RageUI
  3. Download/clone the main repo https://github.com/rubbertoe98/DiamondBlackjack
  4. Copy DiamondBlackjack into your resources/ folder
  5. Copy the src from the RageUI repo into the DiamondBlackjack folder
  6. Start your resource and don't go over 21!

Credits:

  • Thank you to RageUI for allowing the easy creation of the instructions & teleport menu
  • Rockstar for the decompiled scripts ❤️

My personal dev discord https://discord.gg/dnZTpUh

diamondblackjack's People

Contributors

jiminykroket avatar rubbertoe98 avatar utkuali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

diamondblackjack's Issues

Bugs

The dealer dont do animations of giving cards and other animations, and when the time of bet end's, my screen goes to the sky and not in the casino where i was

issue with reward and chips

Hey! I got this issue that if you don't have chip balance you still can bet and if you win you don't get anything.

Cards not tracked

I noticed everytime you deal it's local randomCard = math.random(1,52)

Keep the available card (or card indexes) in a list. Then remove a random card (or index) like this:

Random random = new Random();
List deck = new ArrayList<>();
// ...
int randomIndex = random.nextInt(deck.size());
Card nextCard = deck.remove(randomIndex);

Possibly add more decks and a shuffle function. Because currently, it doesn't seem fair. Also without being able to double and split

New table not accept

i have add new table outside from Casino.
the dealer spawn the table is correct
only the menu is not spawn

Bug

Hello
I want to ask there is a bug while I am joining the server and it show the DiamondBlackjack menu out. When I press, I drop to underground. How I solve this? Tks.

vw_prop_casino_blckjack_01 not working

image

When near the table it prints blackjackTableData[closestChair] == nil and I cant sit down. The other prop with the black chairs seem to be working fine.

Odd dealer behavior

No errors in the console of both server and client but I see almost a skip in the framerate after the dealer recieves a response from the client, then the dealer freezes in the hand extended animation and turns their card regardless of the player's choice (without hitting if that was the client's choice). Very odd issue and I am going to experiment with removing other scripts to see if a conflict is the cause but overall kinda gamebreaking unfortunately.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.