SetTableGamesCameraThisUpdate
Docslocal retval = SetTableGamesCameraThisUpdate(hash)Description
Override the camera work of the third-person camera to table game for current frame only.
| HashKey | Hash | Game | | :---------------------------------: | :-----------:| :-------------: | | `CASINO_LUCKY_WHEEL_CAMERA` | `5891389` | Lucky Wheel | | `CASINO_SLOT_MACHINE_CAMERA` | `518572876` | Slots | | `CASINO_ROULETTE_CAMERA` | `71681063` | Roulette | | `CASINO_BLACKJACK_CAMERA` | `-2124244681` | Blackjack | | `CASINO_POKER_CAMERA` | `-1938411241` | Three Cards | | `CASINO_INSIDE_TRACK_CAMERA` | `1929822423` | Inside Track | | `ARCADE_LOVE_PROFESSOR_P1_CAMERA` | `545868034` | LoveProfessorP1 | | `ARCADE_LOVE_PROFESSOR_P2_CAMERA` | `935304251` | LoveProfessorP2 |
Parameters
| Name | Type | Description |
|---|---|---|
hash | Hash | Hash for table game |
Quick Snippet: Load Model Hashhash
hashModels must be loaded before use. This snippet handles requesting and releasing properly.
-- Properly load a model before spawning/using it
local modelName = "prop_barrel_01a" -- change to your model
local modelHash = GetHashKey(modelName)
RequestModel(modelHash)
while not HasModelLoaded(modelHash) do
Wait(0)
end
print("Model loaded: " .. modelName .. " (" .. modelHash .. ")")
-- Release when done:
-- SetModelAsNoLongerNeeded(modelHash)Returns
BOOLReturns TRUE (1) or FALSE (0).
Examples
CreateThread(function()
while true do
-- override to lucky wheel camera work
SetTableGamesCameraThisUpdate(GetHashKey("CASINO_LUCKY_WHEEL_CAMERA"))
Wait(0)
end
end)