Setting up VCMod as a reward
Even though VCMod works in a very dynamic nature, you can still set it up to work with pCasino. It just takes a few more steps.
- Ensure that you have some way to run client side lua. You can do this by either:
- Temporarily enabling
sv_cheats 1 - Temporarily enabling
sv_allowcslua 1 - If you do either of the above, it is suggested that you do not do it on a populated server and immediately disable it when done.
- Set up a VCMod Car Dealer (Or go to an existing one).
- Add the vehicle you want to be used as a reward.
- Purchase and spawn that vehicle.
- Look at the vehicle and run the following console command (in your game console)
lua_run_cl print(LocalPlayer():GetEyeTrace().Entity:VC_CD_getVehicleID()) - You console should return something like the following:
models/freeman/vehicles/electric_go-kart.mdl$$$_VC_$$$Go-Kart$$$_VC_$$$0. This is the unique ID that VCMod will use to identify the vehicle. Copy it. - Open up the pCasino entity creation tool and set up the entity you wish to put the reward in.
- When prompted to set up the Wheel Settings for that reward, input the string you copied from step 6. It should look something like this.
- Sell the vehicle in the car dealer and test the wheel to see if it works.
- Profit?