Skip to content

dGxxxx/altv-slots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎰 alt:V Slots

Preview: https://streamable.com/2o6sa6

Features:

  • Created using Virtual Entities & NetTime.
  • Synced network scenes.
  • Real-time synced slot rotation.
  • Different scenes & sounds for wins and loses.
  • All the slots inside the casino are playable.
  • The money won is actually calculated based on the slot positions and not on some random value. What you see is what you get!
  • Use E to sit at the slot, Space to spin the slots, and Backspace to leave the slot.

Known Problems:

  • Sometimes (most of the time) the player which is playing, will be seen by other players "warping" into his position. I also have no idea what can cause this.

What can be done to improve the code:

  • A lot. Some of the things to be done are to use RMLUI instead of natives, etc.

Information:

  • This is not a drag and drop system. There are still changes that you have to make for this system to work for your server. This is more of a template / idea of how a casino slot system can be created.
  • This was only tested using 2 players.
  • This system was created using: Typescript Boilerplate for alt:V

Running the system:

npm install
npm run update
npm run dev

To close the server use: CTRL + C in the terminal.

Contact:

  • Discord: _dgx