chore: various fix-ups from docs clean-up (#363)

- Add in missing js functions
  - getCurrentRadialId
  - requestScaleformMove
- Change up math.tohex to maintain lowercase `0x` prefix
- Add missing fields
- Removed extra whitespaces

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
This commit is contained in:
Jag
2023-07-21 04:54:29 -07:00
committed by GitHub
parent 1b8e1f022a
commit 65a799071a
9 changed files with 24 additions and 16 deletions

View File

@@ -86,8 +86,8 @@ end
---@param upper? boolean
---@return string
function math.tohex(n, upper)
n = ('0x%x'):format(n)
return upper and n:upper() or n
local formatString = ('0x%s'):format(upper and '%X' or '%x')
return formatString:format(n)
end
---Converts input number into grouped digits
@@ -99,4 +99,4 @@ function math.groupdigits(number, seperator) -- credit http://richard.warburton.
return left..(num:reverse():gsub('(%d%d%d)','%1' .. (seperator or ',')):reverse())..right
end
return lib.math
return lib.math