Script::GetJackpotAmount
function · ui · orchestration
- Address
0x4c45d0· 20 bytes, up to0x4c45e3- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes the lottery jackpot and returns no values
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/lottery#prizes
Finding: Prizes in ui: the lottery and minigame functions
IsVendorActive(), GetNumLotteryPrizes(), GetJackpotAmount() and GetMoneyPrizes() push their numbers and return 0, so Lua receives
nothing. They push the vendor value once now passes the vendor time, else 0; the count of nonzero prize ids; the jackpot;
the three money words. GetLotteryPrizeInfo(i) returns the item's name, icon path, the
count 1, the quality, and 1 when the player can use it, else nil. It picks the last slot at which the running count of nonzero ids equals
i - 1, so with all four slots set i from 2 to 5 gives slots 0 to 3 and 1 fails. A non-number, i - 1 above 4 unsigned or no slot raises Invalid prize item in GetPrizeItemInfo("type", index).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.