• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Taking tables values

poe6man3

Member
Joined
Aug 6, 2020
Messages
87
Solutions
1
Reaction score
12
Let me start with what table i have created


Lua:
local outfitStates = {
    goku = {
        start = 10,
        stop = 16,
        last = 27
    }
    vegeta = {
        start = 23,
        stop = 26,
        last = 29
    }
    brolly = {
        start = 30,
        stop = 36,
        last = 37
    }
}

And inside the script i want to do something like creature:getVocation() and depending on the vocation i want to setOutfits from the values start to stop and stop to last how can i take the values from table of this kind ?
 
Back
Top