I really hate coming here every time I need help with something
It just feels weird
But I can't figure this one out
I installed an addon on to the server that added weapons using the CSS models for weapons
When I go to the ULX menu and spawn in an AK-47 from there, it'll work:

But when I put this in the code of the gamemode, it doesn't give me anything
ply:Give("ptp_cs_ak47")
ply is defined
The stuff around it works fine
I get no errors when I run the code
Here is "the stuff around it"
if ply:Team() == TEAM_PRISONER then
ply:SetHealth(ply:GetMaxHealth())
ply:StripWeapons()
ply:StripAmmo()
ply:SetWalkSpeed(230)
ply:SetRunSpeed(350)
ply:AllowFlashlight(true)
ply:SetArmor(0)
elseif ply:Team() == TEAM_GUARD then
ply:SetHealth(ply:GetMaxHealth())
ply:SetWalkSpeed(230)
ply:SetRunSpeed(350)
ply:AllowFlashlight(true)
ply:SetArmor(0)
ply:Give("ptp_cs_ak47")
end
I looked up Player.Give on the gmod wiki (the outdated one because it's better) and it told me that it only works with default items supplied by the game:
https://maurits.tv/data/garrysmod/wiki/w...x61ee.htmlThat being said, how would I go about giving a player a non-default weapon
(and maybe if you know how to solve
this, reply there)
