Can some make this script (darkrp)

I want a script when whenever someone joins/respawns as a particular job, it will use the command “ulx strip” on them.




hook.Add("PlayerSpawn","StripWeaponsonSpawn", function()

	local ply = LocalPlayer()

	if (ply:Team() == TEAM_ADDHERE) then
		
		ply:StripWeapons()

	end

end)



Not tested but probably will work

Where is says ADDHERE you type your team table name in capitals

e.g




hook.Add("PlayerSpawn","StripWeaponsonSpawn", function()

	local ply = LocalPlayer()

	if (ply:Team() == TEAM_CITIZEN) then
		
		ply:StripWeapons()

	end

end)



Also this doesn’t use ulx strip it uses the default gmod strip