Gaimo Posted September 29, 2020 Posted September 29, 2020 Como eu posso selecionar uma skin aleatoria da tabela famaleSkins? Normalmente eu uso table[math.random(1, #table)]. Mas nesse caso não tem como, como eu poderia selecionar uma? femaleSkins = {9, 10, 11, 12, 13, 31, 38, 39, 40, 41, 53, 54, 55, 56, 63, 64, 69, 75, 76, 77, 85, 87, 88, 89, 90, 91, 92, 93, 129, 130, 131, 138, 139, 140, 141, 145, 148, 150, 151, 152, 157, 169, 172, 178, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 201, 205, 207, 211, 214, 215, 216, 218, 219, 224, 225, 226, 231, 232, 233, 237, 238, 243, 244, 245, 246, 251, 256, 257, 263, 298, 304}
KronoS Lettify Posted September 29, 2020 Posted September 29, 2020 Se quiser selecionar um valor aleatório que tá dentro da tabela, pode fazer por exemplo: setElementModel(ped, femaleSkins[math.random(#femaleSkins)]) 1 Página Facebook: The News Joker (The Piadas & News) Discord: @kronos.lettify em Discord oficial do MTA Dê um THANKS se minha ajuda ou comentário foi útil para você.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now