MZ Visustella Skill and Class Question

I was wondering how to pull the amount of AP, SP, JP, and/or CP from an actor or actor's class and store into a variable, can anyone help me with this? To clarify, I only need to store one metric into the variable at once (like JP), and I really need to know how one of those that is not class-specific can be placed into a variable, but always love to learn more and if someone could share the class-specific points into a variable as well I would love that.
This is just a guess coming from me ( I completely lack knownledge on js so, don't expect much.)

Have you tried this: let variable = user.maxTp();

This is how the plugin is using when calculating the cost of skills but i'm not sure if you can use it outside the plugin settings.

(Didn't work. I tried return user.mp; too but I guess these only work in the notes inside the plugin. You can check them in the parameters if it is of any help)
This is just a guess coming from me ( I completely lack knownledge on js so, don't expect much.)

Have you tried this: let variable = user.maxTp();

This is how the plugin is using when calculating the cost of skills but i'm not sure if you can use it outside the plugin settings.

I am trying to utilize CP in a common event menu to learn classes, like a currency. You need to spend CP to learn classes. I can use plugin commands to add and subtract but I need to "check" the amount the actor has. I am a noob to Javascript, I only just started learning Python. I am assuming the "user" part is because the scene is actor specific, and I was coming from a different place. I might just have to make my own variables and do it that way, but I tend to convolute things that way. I figured it's already a variable displayed in menus and such, if I could access the amount it would work perfectly.
Anyway, thanks for the help and input, hopefully someone else reads and offers suggestions. I will continue trying out some things!

Original thread: https://forums.rpgmakerweb.com/threads/visustella-skill-and-class-question.153494/