[RELEASE][VRP] vRP Casino

Hi again, it’s me, @DGVaniX

This time I’m bringing you a Casino, yes, a Casino, in vRP!

This Casino includes the following:

Roulette

https://gyazo.com/29b73026a5ff71b5174fa0aaad593caf

Craps (Player vs NPC)

https://gyazo.com/37ee392f3c5d2c55315a174cae5c13da

Craps (Player vs Player)

Slot Machines

Slot Machines (by @hypr9xa): https://forum.cfx.re/t/vrp-slotmachines

Requirements

Code Snippet
["casino_token"] = {"Casino Chip ", "A plastic Chip with a Casino logo",nil,0.0},
  • VK_interiors entrance/exit:
Entrance/Exit
[30] = {id = 30, x = 931.49945068359, y = 43.982097625732, z = 81.096649169922,  name = "Usa 1", destination = {32}},
    [31] = {id = 31, x = 930.12658691406, y = 41.795257568359, z = 81.096611022949,  name = "Usa 2", destination = {32}},
	[32] = {id = 32, x = 906.82446289062, y = -942.3056640625, z = 44.422801971436,  name = "Interior ", destination = {31}},

DOWNLOAD LINK: https://github.com/DGVaniX/vRP/tree/master/vrp_casino

18 Likes

Instead of spamming releases with the same style scripts every few hours, why not just release everything in a pack so it’s centralized?

Just an idea.

1 Like

They’re not the same style scripts… lol… each script is different

And I’ve done that before, releasing everything within the same pack and they got forgotten, lost in the forums.

And also I try to make these scripts drag&drop as I go, I’m pulling them straight from my servr and they were not meant to work with the normal vRP

And I’ve done that before, releasing everything within the same pack and they got forgotten, lost in the forums.

If your scripts are worthwhile using then they won’t be ‘forgotten’.

Maybe, but most people don’t comment on the topic just to say “thanks” or anything besides problems or questions they have, so the topic won’t be pushed to the top. And also some people just scroll though the top of the Release section and if they find something interesting they’ll download it

2 Likes

The slot machines are wrong, they’re making chips, they never lose.

Weird, on my server people never used to play those, because you lose about 5-7 rounds and then win 1

I’m having the same problem, it’s an absurd chip mining hahaha

but the purpose of the resource, it is a wonder, try to correct this bug, and it will be 100% wonderful <3

2 Likes

Could release the IPL walls of the casino because I do not have always fall into a hole

In case you didn’t notice, there’s a REQUIREMENTS section which tells you to download the Casino map…

2 Likes

Have this to esx?

DGVaniX is not downloading your script help me pfv

Hello you can do it by yourself, that’s what i’m trying to do it with NativeUILua it’s easy

Good stuff

Hi can you help me so a can fix?

There’s no fix you need to load the mapping, and create the casino’s menus, you can inspire you with this script.
I personnaly maid my casino with NativeUI

thanks mate, thats so good but yeah i`m with this problem too. chip machine awlays winning. allready did what i know but not working.

I need some help from you @DGVaniX I am trying to create an ilegal casino where i come with dirty money and i get dirtycasino tokens (i am doing it with item transformers). When i play with dirtytokens i get clean casinotokens if i win and you can use them in the legal casino. This is somekind of money laundreing i am trying to make in my roleplay server. i am having an issue that is that i don’t know how to change the coords for the roulete tables . can you help me? i doubled the ressource so i have one for the original casino and other for the ilegal one. ii am having two other issues. in the slotmachines you win everytime you play so i replaced it for the original ones but i would like to play with chips so i hope you solve the issue, and the other issue is that you can’t play craps with other players. it allways says that the match is expired. this script is awsome and my community is having a lot of fun! thanks!

Hey!

Thank you @DGVaniX for releasing this script!

I want to develop more games, is anyone interested helping me out?
Thank you!

Hello @LifeOnShuffle_LifeOn,

I already had that idea and as you said, it’s a kind of money laundering (what makes things more interesting). Honestly I haven’t try it yet, but have you already tried to modify the “reward” on function vRP.tryGetInventoryItem ?

Craps Example

Original Code (server.lua)

*118* if vRP.tryGetInventoryItem({user_id,"casino_token",tokenNr,false}) then
           (...)
*134* vRP.giveInventoryItem({user_id,"casino_token",tokenNr*2,false})

Modified

*118* if vRP.tryGetInventoryItem({user_id,"dirty_token",tokenNr,false}) then
           (...)
*134* vRP.giveInventoryItem({user_id,"casino_token",tokenNr*2,false})

Originally the script is taking casino_token and rewarding you with casino_token as well.
With the modification on your doubled resource (vrp_dirtycasino) the script will take dirty_token (or even if you want it can take directly dirtymoney from you) and reward you with casino_token.

Hope this helps you out :slight_smile: