Skip to main content

GetRandomString

ESX.GetRandomString(length)

This function gets a random string, with the defined length.

Example

local str = ESX.GetRandomString(5)
print(str) -- prints "JFB4V" ( 5 random characters)