mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user