local Wallet = LocalPlayer().PS2_Wallet
if Wallet == nil then timer.Simple( 60, function() end ) end
local text = Wallet.points
Trying to get PS2 points to print to the HUD in jailbreak via the cl_init.lua I keep getting
[ERROR] gamemodes/jailbreak/gamemode/cl_init.lua:190: attempt to index local 'Wallet' (a nil value)
1. fn - gamemodes/jailbreak/gamemode/cl_init.lua:190
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
when pointshop isn’t loaded this will appear. I tried to add the timer to make it wait if the wallet is nil but it doesn’t seem to work properly. Surely there must be a proper way to wait for the initialization of PS2 before drawing the hud