a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / getRandomEnumEntry
getRandomEnumEntry<
T
>(enumType
): [keyofT
,T
[keyofT
]]
Returns a random entry from the given enum type.
• T extends object
• enumType: T
The enum type from which to select a random entry.
[keyof T
, T
[keyof T
]]