What is the console command to change models?

I am on GMS and I forgot the console command to change models. I googled it, no results. I asked my friends and still no results.

It’s called lua.

[lua]
lua_run
for k,v in pairs(player.GetAll()) do
v:SetModel(“cake.mdl”)
end
[/lua]

For names it would be
[lua]
lua_run
for k,v in pairs(player.GetAll()) do
if (v:Nick()):lower():find(“Aedan1”) then
v:SetModel(“cake.mdl”)
end
end[/lua]

I doubt you type that in the console to change your model. :v:

Idk. the console command,but you CAN go into sandbox and navigate the tabs under the right window and you will find a button called “Model”. Just click on the button and select the model you want.
Kill yourself and you will now spawn with your new model.

You can’t in GMS.

Setmodel <modelname.mdl>