[RELEASE] [ESX] Diamond Casino Lucky Wheel

Thanks for coords! I love you <3

Is there any way I can customize the texture of the wheel?

Hey,

Im looking for the plate where the car will turn around on do you guys know how to fix that ?


image

1 Like

@Dalisa Did you work this out?

could you share how you got this working?

Probably missing object or the size of it went over the Streaming limit.

This is what you need for the spinning podium, the code is the same to spawn the car prop and to make it spin. just add these lines to the same places

underneath ESX = nil place

local _podiumModel = vector3(963.42, 47.85, 74.33) --Change to your coords for your casino MLO

underneath local baseWheelModel = GetHashKey(‘vw_prop_vw_luckywheel_01a’) place

local podiumModel = GetHashKey('vw_prop_vw_casino_podium_01a')

underneath

            _basewheel = CreateObject(baseWheelModel, _baseWheelPos.x, _baseWheelPos.y, _baseWheelPos.z, false, false, true)
            SetEntityHeading(_basewheel, 58.32)
            SetModelAsNoLongerNeeded(baseWheelModel)
            RequestModel(model)
            while not HasModelLoaded(model) do
                Citizen.Wait(0)
            end

place

RequestModel(podiumModel)
		while not HasModelLoaded(podiumModel) do
			Citizen.Wait(0)
		end
_podiumModel = CreateObject(podiumModel, _podiumModel.x, _podiumModel.y, _podiumModel.z, false, false, true)
SetEntityHeading(_podiumModel, 0.0)
SetModelAsNoLongerNeeded(podiumModel)

underneath

Citizen.CreateThread(function()
    while true do
        if _lambo ~= nil then
            local _heading = GetEntityHeading(_lambo)
            local _z = _heading - 0.3
            SetEntityHeading(_lambo, _z)
        end
        Citizen.Wait(5)
    end
end)

place

Citizen.CreateThread(function() 
    while true do
        if _podiumModel ~= nil then
            local _heading = GetEntityHeading(_podiumModel)
            local _z = _heading - 0.05
            SetEntityHeading(_podiumModel, _z)
        end
        Citizen.Wait(5)
    end
end)
2 Likes

This is great, working on a wheel retexture + rewards.

Re-skinning this was the biggest pain in the ass because the textures repeat multiple times, so changing one value changes multiple, which is why there’s no icons.

Video

1 Like

can you give me this re skin

i have the same problem

are you editing the texture file in dds format?

Who’s experiencing heading problems when spinning the wheel

Set bottom of doRoll event (around line 97)
From

SetEntityRotation(_wheel, 0.0, _y, 58.32, 1, true)

To

SetEntityRotation(_wheel, 0.0, _y, <your_wheel_heading>, 2, true)

Example
If your SetEntityHeading(_wheel, -30.9754) ; use

> SetEntityRotation(_wheel, 0.0, _y, -30.9754, 2, true)

1 Like

Check this out

Hello,
I can not register the car in the database ( owned_vehicles) I tried everything that has been said above but nothing works, do you have any idea please.

Thank you :slight_smile:

What do you mean by “register the car in the database”? As in pull from database to spawn and show in the casino or add it to the winner’s owned vehicle list?

Hi, I forgot a piece of the message, I would like the car winning at the casino to be recorded in the player’s database (owned_vehicles) that it wins it.

Reference this post I made above. It has the code you need, you will need to modify it if you don’t want randomized vehicles on script restart.

1 Like

Looks really cool, I’m going to try

post this pleaseeeeee