#PlayerMenu panel
56 messages · Page 1 of 1 (latest)
no. c_handmodel and the playermodel like the modules of player_manager and list
i have no brain to code that but i need more examples
You could create a Palm code that checks lua/handmodels and retrieves the hand names
And so he executes the console command
The command to switch handmodel
yes i know that but....
But I don't know how to do that with playermodels
Palm "code" I mean Palm panel
man my head is messed up fr.
I'm trying to do like this
local model = {}
if model ~= nil then
for k, v in pairs(model) do
if v == nil then
button[k] = vgui.Create(PButton, k)
button[k]:SetText(k)
end```
now this thing looks nonsense just me because my head is messed up by codding
Bro
This isn't Palm, I think Palm would be easier
nah creating a panel is hard
this is what, what i think of.... nah i can't think about the coding
Just modify the Palm panel example then
yep i tried some simple things about the PPropertyDialog
about the example that the yourlocalmoon gives
Oh
this like when a person tries to make a... like the list hand it should automatically generate a button on the panel and a name
Do like:
local data = file.Read("lua/handmodels/ idk, "GAME")
if not data then return end
Replace idk with .lua I think
no this is what i been... thinking a
engine.Servercommand("c_handmodel" ..Button or something)
engine.ClientCmd_Unrestricted
like when a person clicks the button it automatically selects the model arm that you pick
nice
Just make one button for every handmodel that was found
but there's a table i need or something
Correcting the code to make it make sense:
local data = file.Read("lua/handmodels/*.lua", "GAME")
if not data then return end
welp the palm is not yet advanced then I'll find another way
*.lua" This causes any .lua file to be read
🤔
Actually, you use the Palm to create the panel but the code can basically be anything I think
Because the Palm is only used for the panel
And the buttons and text
yes...
Like look what I did with palm
what if i create a player_manager.lua on modules it might work or just not
Idk
Never tried
hmmm then i should try it
since you give an example that i might understand a little bit
Very hard and laggy
we have pms menu why u need it in lua?
just say
we need radio menu
for voiceline CS:S or TF2
He wants a quick menu
A menu that doesn't take so long to load cuz of the 3D models
It's like a menu without the models just the buttons
yes
Does this work automatically
Also I agree with Belugas idea
It takes 9 centuries to load
You need to put that in lua/gameui and type in console "DevMenu"
Actually shit but works
