I’m trying to make an simple weapon selection menu to get back into Glua.
But there are a few things that bother me that are:
- I got the selection and weapon give thing working by doing this:
[lua]DButton.DoClick = function() local primary = PrimaryBox:GetSelectedItems():GetValue()
local second = SecondBox:GetSelectedItems():GetValue()
local third = ThirdBox:GetSelectedItems():GetValue()
if primary == “Glock” then
if second == “M4a1” then
if third == “HE Grenade” then
[lua]function glock( ply )
// Second Box
function m4a1( ply )
// Third Box
function hegrenade( ply )
It works but isnt there a simple way of doing this? and/or somehow you can’t pick it from Console?
- When I die I lose all the weapons and I want back my previous weapons not by selecting from the weapon menu because it will take to long. Any Glua things I should look at for that?