[Standalone] chCasinoWall | Working Diamond Casino Video Walls

yes me to, how can I do it ? TY

@CharlesHacks did you manage to the the inside track screen working
this is what I have but the render is a bit off, any ideas?
bigScreen.lua (2.0 KB)

Hello i have use set sv_enforceGameBuild 2060 for casino but i have this problem
(Screen capture - 873f1466efdd5c22e42261d1ffbdc3dd - Gyazo)
Any can help? thanks

the interior is under the map, it is not apart of the exterior

how i can fix this?

1 Like

If you’re talking about the left side being a bit offset, if I recall correctly you need to use SetScaleformFitRendertarget.

What are the coords of the casino interior after enforcing 2060?

edit: never mind, found them on some other wiki

Do the video walls work with tho

edit: nevermind, I am using the IPL now instead of the addon MLO

Hi, great script, can you update it enabling the background sound effects of the slot machines and the NPCs talking?

1 Like

Does anyone know what the trigger should look like for Lua? I have been messing with this for quite a while and have been struggling with adding the trigger to my teleport script.

Thanks! :grinning:

EDIT:
I did end up finding this out on my own with a lot of trial and error. I am new to Lua so still learning a lot. for anyone that might be wondering the same, your trigger should look like this:

TriggerEvent('chCasinoWall:enteredCasino')

Also, I am not sure what MLO you guys are using to just have a teleport script set up for the Casino. It seems that most people are using the “Enterable Diamond Casino MLO” posted here:

Is there a better one to use for this? Otherwise, it would be very cool to just have that event trigger when a player walks in a “zone” around the casino. Not too sure how to implement something like that however…

1 Like

It does work but this scrip requires you to add the server events manually like this:

TriggerEvent('chCasinoWall:enteredCasino')

which lua file should the trigger be added?

im using this casino GitHub - azusakawa/casino: casino

@alvinthatsme This script by its self does NOT make the walls work. You have to add triggers to other Casino related events to get them to turn on. For example, I have a spot that players can use to teleport into the casino. When they use the TP pad it also runs this event:

TriggerEvent('chCasinoWall:enteredCasino')

Then I also have other gambling-related games in the Casino. When players win any of the games I also have it trigger:

TriggerEvent('chCasinoWall:BigWin')

So long story short, you need to implement this resource with others to make it work. Also any triggers that I have set are run in the client.lua files.

1 Like

Thanks. I’ll give it a try

1 Like

Really nice to see it. But since im Using this MLO right here: The Diamond Casino Enterable MLO

Which is in the Floor i dont know where to change thats its loading on the right coordinates then. And is it working with the Cayo Perico Build?

Has anybody made it working with casino interior that is not streamed (native one from gta, that is underground)? I don’t know if I have to load some other IPL or enable some sort of interior prop to make those TVs to work.

using bt-polyzone

exports['bt-polyzone']:AddPolyZone("casinoint", {
  vector2(921.50854492188, 17.438575744629),
  vector2(923.55249023438, 16.61852645874),
  vector2(947.31774902344, 14.980132102966),
  vector2(976.52911376953, 32.480995178223),
  vector2(981.3095703125, 23.235378265381),
  vector2(1006.0146484375, 30.726564407349),
  vector2(1009.0797119141, 56.786304473877),
  vector2(1006.3109130859, 65.008056640625),
  vector2(994.49304199219, 82.068382263184),
  vector2(967.60034179688, 73.396492004395),
  vector2(957.134765625, 87.107353210449),
  vector2(937.76440429688, 82.859039306641),
  vector2(921.49029541016, 57.103061676025),
  vector2(914.74853515625, 40.512115478516)
}, {
  name="casinoint",
  debugPoly = false,
  minZ = 68.0,
  maxZ = 80.0
})

AddEventHandler('bt-polyzone:enter', function(name)  
    if name == 'casinoint' then
        TriggerEvent('chCasinoWall:enteredCasino')
        print("Entered Casino area")
        InCasino = true
    end
end)

AddEventHandler('bt-polyzone:exit', function(name)
    if name == 'casinoint' then
        TriggerEvent('chCasinoWall:exitedCasino')
        print("Exited Casino area")
        InCasino = false
        Wait(5000)
        startCasinoThreads()
    end
end)

So you are meaning that cannot be triggered by server event? so everywone can see it the “bigwin” event? can you show me an way to do this if its possible?

You would think the code would do exactly that but yet it’s up to us to do it, regardless of the | Working claim.

For all those who still need a script to trigger the events…here is a small script from me. In the trigger.lua you can set everything to trigger the events. Maybe this would be also something for the original code.

sc_trigger.zip (756 Bytes)