-
hook.Add("HUDPaint", "JailTime", function()
-
if LocalPlayer():isArrested() then
-
draw.RoundedBox(8, 8, 10, 570, 35, Color(30, 30, 30))
-
draw.SimpleText("Before leaving prison "..math.floor(LocalPlayer():GetArrestInfo().Release - CurTime()).." seconds.","HudFontBold", 10, 10, Color(80, 80, 80))
-
end
-
end)
-
[ERROR] lua/autorun/client/cl_jail.lua:5: attempt to call method 'GetArrestInfo' (a nil value)
1. fn - lua/autorun/client/cl_jail.lua:5
2. unknown - addons/ulx_ulib/lua/ulib/shared/hook.lua:109