[Help] [Code] Player "class" es_extended

Hey!

I’m trying to create a player data called “class”, like job/job.grade, inside es_extended, where i could use it on another resources.
I wish I could use this the same way as i can use “if xPlayer.job.name == job then code”, like: “if xPlayer.class == 1 then code”.
I’ve tried to implement “class” on es_extended server xPlayer data code, without success.
Just to be clear, the “class” column on sql is a int with size 1 (can be 0, 1, 2, 3 , 4 or 5).

Any ideas on how to do this?

Thanks!

(Sorry for the bad english and explanation, it’s not my mother language, please tell me if you need any more infos).

Try taking a look at this, might give you an idea.

https://docs.essentialmode.com/#configuration