mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 23:46: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:
@@ -21,7 +21,7 @@ function lib.getNearbyObjects(coords, maxDistance)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return nearby
|
||||
end
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -136,5 +136,4 @@ function table.isfrozen(tbl)
|
||||
return getmetatable(tbl) == 'readonly'
|
||||
end
|
||||
|
||||
|
||||
return lib.table
|
||||
|
||||
Reference in New Issue
Block a user